diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-08-16 09:59:58 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-09-07 20:03:50 +0300 |
commit | 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 (patch) | |
tree | 6b6d7b1375ff88f4bebbfa0703f7b595eb485df9 /test/data/readywaitloader.js | |
parent | 7aa46e0df8a673e6b00550bbbbed21eed50108b7 (diff) | |
download | jquery-10fdad742a2a6aa9f0e00b3e04fc5264797c53c7.tar.gz jquery-10fdad742a2a6aa9f0e00b3e04fc5264797c53c7.zip |
Build: Update jscs and lint files
Fixes gh-2056
Diffstat (limited to 'test/data/readywaitloader.js')
-rw-r--r-- | test/data/readywaitloader.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/data/readywaitloader.js b/test/data/readywaitloader.js index e07dac7a9..8f4a3452e 100644 --- a/test/data/readywaitloader.js +++ b/test/data/readywaitloader.js @@ -1,19 +1,19 @@ // Simple script loader that uses jQuery.readyWait via jQuery.holdReady() //Hold on jQuery! -jQuery.holdReady(true); +jQuery.holdReady( true ); var readyRegExp = /^(complete|loaded)$/; -function assetLoaded( evt ){ +function assetLoaded( evt ) { var node = evt.currentTarget || evt.srcElement; - if ( evt.type === "load" || readyRegExp.test(node.readyState) ) { - jQuery.holdReady(false); + if ( evt.type === "load" || readyRegExp.test( node.readyState ) ) { + jQuery.holdReady( false ); } } setTimeout( function() { - var script = document.createElement("script"); + var script = document.createElement( "script" ); script.type = "text/javascript"; if ( script.addEventListener ) { script.addEventListener( "load", assetLoaded, false ); @@ -21,5 +21,5 @@ setTimeout( function() { script.attachEvent( "onreadystatechange", assetLoaded ); } script.src = "data/readywaitasset.js"; - document.getElementsByTagName("head")[0].appendChild(script); + document.getElementsByTagName( "head" )[ 0 ].appendChild( script ); }, 2000 ); |