This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library 20160208
New Additions
- Add goog.ui.Dialog#setTextContent. Allows plain text to be set in the content element.
Backwards Incompatible Changes
- goog.html.legacyconversions.ALLOW_LEGACY_CONVERSIONS define no longer exists. Calls to goog.html.legacyconversions can be prevented using JS Conformance instead.
- goog.ui.Prompt's constructor
promptBody
argument is now treated as plain text. Breaking change for third parties: This will introduce double-escaping if your code passes a string with HTML code to goog.ui.Prompt. Pass SafeHtml instead. - Remove deprecated function goog.ui.Control.decorate.
- Delete deprecated goog.ui.tree.BaseNode#setHtml and setAfterLabelHtml.Breaking change for third parties: This will introduce double-escaping if your code is passing an HTML code to tree constructors.
- Ban the creation of meta tags through goog.html.SafeHtml.create.
Other Changes
- Add type information to the SafeHtml#unwrap (and similar) error message.
- goog.addDependency's module parameter can now optionally be a dictionary.
- Type of goog.ui.ComboBoxItem's opt_data changed from {Object=} to {*=} to match type of goog.ui.MenuItem's opt_model.
- Re-declared input type of ImageLoader.addImage from "string or Image or null" to "string or HTMLImageElement", which makes more sense.
- assertHtmlMatches now describes the problem node when classes don't match.
- Added a doc/ directory from which to generate gh-pages.