Closed askucher closed 11 years ago
@askucher Hi, you should use do
for an implicit object.
$(myImg).Jcrop do
trackDocument: true
onSelect: (x) ->
You must use do
when calling with an implicit object.
eg.
$ myImg .Jcrop do
trackDocument: true
onSelect: (x) ->
PS. Indent code four spaces to preserve formatting.
Thx for quick answer
On Sat, Aug 24, 2013 at 7:31 PM, George Zahariev notifications@github.comwrote:
You must use do when calling with an implicit object.
eg. $ myImg .Jcrop do
trackDocument: true onSelect: (x) ->
PS. Indent code four spaces to preserve formatting.
— Reply to this email directly or view it on GitHubhttps://github.com/gkz/LiveScript/issues/363#issuecomment-23211808 .
It works in coffeescript
$(myImg).Jcrop __trackDocument: true __onSelect: (x) ->
It doesn't work in livescript:
$(myImg).Jcrop( __trackDocument: true __onSelect: (x) -> _____)
Is it ok?