derby-webdriverio
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "derby-webdriverio", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Webdriver.io for Derby.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
module.exports = function(app, waitTimeout) { | ||
var removePageRendered, setPageRendered; | ||
if (waitTimeout == null) { | ||
waitTimeout = 10; | ||
} | ||
({ | ||
setPageRendered: function() { | ||
if (app.derby.util.isServer) { | ||
return; | ||
} | ||
return setTimeout(function() { | ||
window._rendered = true; | ||
return document.documentElement.classList.add('__rendered'); | ||
}, 10); | ||
}, | ||
removePageRendered: function() { | ||
if (app.derby.util.isServer) { | ||
return; | ||
} | ||
delete window._rendered; | ||
return document.documentElement.classList.remove('__rendered'); | ||
setPageRendered = function() { | ||
if (app.derby.util.isServer) { | ||
return; | ||
} | ||
}); | ||
return setTimeout(function() { | ||
window._rendered = true; | ||
return document.documentElement.classList.add('__rendered'); | ||
}, 10); | ||
}; | ||
removePageRendered = function() { | ||
if (app.derby.util.isServer) { | ||
return; | ||
} | ||
delete window._rendered; | ||
return document.documentElement.classList.remove('__rendered'); | ||
}; | ||
app.on('ready', setPageRendered); | ||
@@ -26,0 +25,0 @@ app.on('route', removePageRendered); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32762
473