Skip to content

Commit

Permalink
coffee-ified amir20#17 (typo in phantom.injectJs)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgentle committed Jan 25, 2012
1 parent c111eed commit bf0beaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shim.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pageWrap = (page) -> mkwrap page,
render: (file, cb=->) -> page.render file; cb()

_phantom = mkwrap phantom,
['exit', 'injectJS'],
['exit', 'injectJs'],
createPage: (cb) -> cb pageWrap webpage.create()


Expand Down
2 changes: 1 addition & 1 deletion shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ require.define("/shim.coffee", function (require, module, exports, __dirname, __
};

pageWrap = function(page) {
return mkwrap(page, ['open', 'includeJs', 'injectJs', 'render', 'sendEvent', 'release', 'uploadFile'], {
return mkwrap(page, ['open', 'includeJs', 'injectJs', 'sendEvent', 'release', 'uploadFile'], {
evaluate: function(fn, cb) {
if (cb == null) cb = function() {};
return cb(page.evaluate(fn));
Expand Down

0 comments on commit bf0beaf

Please sign in to comment.