Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zmmbreeze committed Jun 6, 2012
1 parent 24b991d commit 673a777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/lib/support.js
Expand Up @@ -67,7 +67,7 @@ G.def( 'support', function() {
var isSupported = (eventName in el);
if ( !isSupported ) {
el.setAttribute(eventName, 'return;');
isSupported = typeof el[eventName] == 'function';
isSupported = typeof el[eventName] === 'function';
}
if ( !isSupported ) {
result = false;
Expand All @@ -81,7 +81,7 @@ G.def( 'support', function() {
* copy自modernizr: <https://github.com/Modernizr/Modernizr/blob/master/modernizr.js>
*/
cssanimation: function supportCssAnimation() { // 缓存
if ( typeof supportCssAnimation.r != 'undefined' ) {
if ( typeof supportCssAnimation.r !== 'undefined' ) {
return supportCssAnimation.r;
}
var result = false,
Expand Down

0 comments on commit 673a777

Please sign in to comment.