Commit 5cad7e63 5cad7e63f8dadf78a5e76c9194d78b67bf7d9e96 by Nicolas Perriault

minor fixes

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