Commit 8e37f3f0 8e37f3f01674521f252657688c3adc764d3e5b65 by Nicolas Perriault

js linting

1 parent 7c714d10
...@@ -505,7 +505,7 @@ Casper.prototype.echo = function echo(text, style, pad) { ...@@ -505,7 +505,7 @@ Casper.prototype.echo = function echo(text, style, pad) {
505 } catch (e) { 505 } catch (e) {
506 try { 506 try {
507 text = utils.serialize(text); 507 text = utils.serialize(text);
508 } catch (e) { 508 } catch (e2) {
509 text = ''; 509 text = '';
510 } 510 }
511 } 511 }
...@@ -843,8 +843,9 @@ Casper.prototype.injectClientUtils = function injectClientUtils() { ...@@ -843,8 +843,9 @@ Casper.prototype.injectClientUtils = function injectClientUtils() {
843 } 843 }
844 // ClientUtils and Casper shares the same options 844 // ClientUtils and Casper shares the same options
845 // These are not the lines I'm the most proud of in my life, but it works. 845 // These are not the lines I'm the most proud of in my life, but it works.
846 /*global __options*/
846 this.page.evaluate(function() { 847 this.page.evaluate(function() {
847 window.__utils__ = new ClientUtils(__options); 848 window.__utils__ = new window.ClientUtils(__options);
848 }.toString().replace('__options', JSON.stringify(this.options))); 849 }.toString().replace('__options', JSON.stringify(this.options)));
849 }; 850 };
850 851
......