Permalink
Browse files

MINOR: Fixing typo - "splice !== slice"

  • Loading branch information...
detro committed Sep 26, 2012
1 parent d5eb657 commit 9cf6cbe818a84dce6a70f9b83899eb73536cf650
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/modules/webpage.js
View
@@ -289,7 +289,8 @@ function decorateNewPage(opts, page) {
* @param {...} args function arguments
*/
page.evaluateAsync = function (func, timeMs, args) {
- var args = Array.prototype.splice.call(arguments, 2), //< remove the first 2 arguments because we are going to consume them
+ // Remove the first 2 arguments because we are going to consume them
+ var args = Array.prototype.slice.call(arguments, 2),
numArgsToAppend = args.length,
funcTimeoutWrapper;

0 comments on commit 9cf6cbe

Please sign in to comment.