alexscheelmeyer / node-phantom

bridge to PhantomJS from Node.js
317 stars 117 forks source link

Fixed page.includeJs() #39

Closed FelixHoer closed 11 years ago

FelixHoer commented 11 years ago

In the current implementation of node-phantom a call to page.includeJs() returns immediately. According to the PhantomJS API it invokes a callback, after the script has been loaded and executed.

I fixed bridge.js to respond in that callback.