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

Closure Library v20160911

Compare
Choose a tag to compare
@blickly blickly released this 06 Oct 18:38

New Additions

  • New selection change event type enum entry.
  • Support for TEMPLATE tags. Added a method to turn off TEMPLATE tag content sanitization on browsers that support the TEMPLATE tag.

Backwards Incompatible Changes

  • This changes the type of goog.dom.TagName members from string to object instances used to infer the type of created or got elements. This breaks string-only uses of goog.dom.TagName members such as in "case el.tagName" statement or with strict comparison ===. Most uses (passing goog.dom.TagName members to functions such as goog.dom.createDom or non-strict comparison ==) are unaffected. Closure Compiler unconditionally converts goog.dom.TagName members to strings which means that compiled code will still work even with string-only uses. Uncompiled code needs wrapping goog.dom.TagName members to String() in string-only context.
  • goog.dom.forms.submitFormDataInNewWindow and goog.dom.forms.submitFormInNewWindow now works with form fields whose name shadow existing dom methods.

Other Changes

  • Fix Chrome console warning when using goog.events.KeyHandler due to accessing deprecated KeyboardEvent.keyIdentifier.
  • Update transpile.js, fixes bug in transpiling "for" loops using "let" or "const" declarations.
  • Do not validate strict goog.require while goog.ENABLE_DEBUG_LOADER is false.
  • Fixed numberformat (scientific) so it doesn't hang on specific very small numbers (say 5E-324) that are representable but for their exponent Math.pow(10, exponent) would return 0.