Filter by:
File Violation Severity
dynamic-site/js/custom.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/custom.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/custom.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
194
 
195
        element = element || document.createElement(TAGNAMES[eventName] || 'div');
196
        eventName = 'on' + eventName;
197
 
198
        // When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those
199
        var isSupported = eventName in element;
200
 
201
        if ( !isSupported ) {
202
          // If it has no `setAttribute` (i.e. doesn't implement Node interface), try generic element
203
          if ( !element.setAttribute ) {
204
            element = document.createElement('div');
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice
dynamic-site/js/modernizr.js vars-on-top   (kritika/ESLint)
All 'var' declarations must be at the top of the function scope
Notice