Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Closure Library v20161024

Compare
Choose a tag to compare
@dimvar dimvar released this 27 Oct 21:43

New Additions

  • Adding MockClock.getCallbacksTriggered
  • Added goog.html.TrustedResourceUrl.format(). Added goog.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 returns undefined in all situations when a particular header does not exist in the response. Previously it would, incorrectly, return null 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 IE
  • goog.async.run should only use truly native Promise.
  • 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 to registerDisposable directly instead of storing closure'd dispose functions.
  • Make InputHandler compatible with goog.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 an Error, it will be converted into an Error with the value's toString as the error message.
  • Fixing interpolation for animation in rare system clock updates.
  • Only use setCapture in goog.fx.Dragger if releaseCapture is also available.
  • Correct goog.needsTranspile_() to throw for unknown language mode.
  • Fix an assertion failure message for unrecognized fields