This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Closure Library v20161024
New Additions
- Adding
MockClock.getCallbacksTriggered - Added
goog.html.TrustedResourceUrl.format(). Addedgoog.string.Const.EMPTY. - Creates a new method,
goog.locale.getLocalizedRegionNameFromRegionCode, that accepts a region code and returns a localized region name. - Added
goog.userAgent.IOSconstant. - add a configuration option for the HTML sanitizer to restrict the set of allowed attributes. Also allow the policy to be relaxed using
alsoAllowAttributes. - Introduced a new webchannel option
httpSessionIdParam. - Add
goog.string.replaceAll
Backwards Incompatible Changes
goog.net.Xhrio.getResponseHeadernow returnsundefinedin all situations when a particular header does not exist in the response. Previously it would, incorrectly, returnnullin some situations.- let the autocomplete renderer now can set a border width to set the width of autocomplete dropdown width more flexible.
Other Changes
- No longer call deprecated
elem.getAttributeNode(). - Fix bug where
transpile.jswas polluting global namespace with GWT exports goog.dom.hasSpecifiedTabIndex_: fix for ancient IEgoog.async.runshould only use truly nativePromise.- Add checks for 'es7' and 'es8' support.
goog.events.EventTypeis updated with deviceorientation events.- Added an option to
goog.net.BrowserChannelto perform test requests asynchronously. - Store
Disposableobjects passed toregisterDisposabledirectly instead of storing closure'd dispose functions. - Make
InputHandlercompatible withgoog.defineClass - Add comment to clear function in
IterableMechanism - Fixed a bug where multikey shortcuts were ignored on Windows
- Widen the
goog.debug.enhanceErrorinterface to accept any type of value. If the value is not anError, it will be converted into anErrorwith the value'stoStringas the error message. - Fixing interpolation for animation in rare system clock updates.
- Only use
setCaptureingoog.fx.DraggerifreleaseCaptureis also available. - Correct
goog.needsTranspile_()to throw for unknown language mode. - Fix an assertion failure message for unrecognized fields