Commit 5cad7e63 5cad7e63f8dadf78a5e76c9194d78b67bf7d9e96 by Nicolas Perriault

minor fixes

1 parent dfc5d75f
......@@ -1893,12 +1893,12 @@ Casper.prototype.waitForText = function(pattern, then, onTimeout, timeout) {
* @return Casper
*/
Casper.prototype.waitForSelectorTextChange = function(selector, then, onTimeout, timeout) {
"user strict";
"use strict";
this.checkStarted();
timeout = timeout ? timeout : this.options.waitTimeout;
var currentSelectorText = this.fetchText(selector);
return this.waitFor(function _check() {
return currentSelectorText != this.fetchText(selector);
return currentSelectorText !== this.fetchText(selector);
}, then, onTimeout, timeout);
};
......