lib/capybara/poltergeist/client/compiled/main.js in poltergeist-0.2.0 vs lib/capybara/poltergeist/client/compiled/main.js in poltergeist-0.3.0
- old
+ new
@@ -1,6 +1,6 @@
var Poltergeist;
-if (phantom.version.major < 1 || phantom.version.minor < 4 || phantom.version.patch < 1) {
+if (("" + phantom.version.major + "." + phantom.version.minor + "." + phantom.version.patch) < "1.4.1") {
console.log("Poltergeist requires a PhantomJS version of at least 1.4.1");
phantom.exit(1);
}
Poltergeist = (function() {
function Poltergeist(port) {
\ No newline at end of file