Commit 2425295f 2425295fed21961242e9d3a826a3be6e68589225 by Renan Gonçalves

Fix CoffeeScript example code

Fixes #796
1 parent d7d1d38c
...@@ -138,7 +138,7 @@ You can also write Casper scripts using the `CoffeeScript syntax <http://jashken ...@@ -138,7 +138,7 @@ You can also write Casper scripts using the `CoffeeScript syntax <http://jashken
138 Array::map.call links, (e) -> e.getAttribute "href" 138 Array::map.call links, (e) -> e.getAttribute "href"
139 139
140 links = [] 140 links = []
141 casper = require('casper').create() 141 casper = new require("casper").Casper
142 142
143 casper.start "http://google.fr/", -> 143 casper.start "http://google.fr/", ->
144 # search for 'casperjs' from google form 144 # search for 'casperjs' from google form
......