This repository has been 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.IOS
constant. - 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.getResponseHeader
now returnsundefined
in all situations when a particular header does not exist in the response. Previously it would, incorrectly, returnnull
in 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.js
was polluting global namespace with GWT exports goog.dom.hasSpecifiedTabIndex_
: fix for ancient IEgoog.async.run
should only use truly nativePromise
.- Add checks for 'es7' and 'es8' support.
goog.events.EventType
is updated with deviceorientation events.- Added an option to
goog.net.BrowserChannel
to perform test requests asynchronously. - Store
Disposable
objects passed toregisterDisposable
directly instead of storing closure'd dispose functions. - Make
InputHandler
compatible withgoog.defineClass
- Add comment to clear function in
IterableMechanism
- Fixed a bug where multikey shortcuts were ignored on Windows
- Widen the
goog.debug.enhanceError
interface to accept any type of value. If the value is not anError
, it will be converted into anError
with the value'stoString
as the error message. - Fixing interpolation for animation in rare system clock updates.
- Only use
setCapture
ingoog.fx.Dragger
ifreleaseCapture
is also available. - Correct
goog.needsTranspile_()
to throw for unknown language mode. - Fix an assertion failure message for unrecognized fields