js linting
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment