Permalink
Browse files

Change goog.dom.classlist to check for the 'DOMTokenList' property

on goog.global rather than the type of the 'DOMTokenList' namespace
to fix broken binaries which did not include 'DOMTokenList' in their
externs.

R=arv
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5771


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2273 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent f5a8b06 commit 5f0a61aea761d5f2bbb08ed5b99a8bf86956742e luizp@google.com committed Nov 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 closure/goog/dom/classlist.js
@@ -44,7 +44,7 @@ goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST = false;
*/
goog.dom.classlist.NATIVE_DOM_TOKEN_LIST_ =
goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST ||
- typeof DOMTokenList != 'undefined';
+ !!window['DOMTokenList'];
/**

0 comments on commit 5f0a61a

Please sign in to comment.