opal-jquery
opal-jquery copied to clipboard
jQuery for Opal
I was trying to send a multipart payload, but since the current code is processing everything that is not a string as json, I couldn't make through. This PR uses...
in order to capture more than the first touch, the 'touch def' should accept optional params : def touch_x(touch_nb = 0) `#@native.originalEvent.touches[#{touch_nb}].pageX` end def touch_y(touch_nb = 0) `#@native.originalEvent.touches[#{touch_nb}].pageY` end
There's no way to set offset to an element. here is a patch to make it work class Element def offset value = nil if value.nil? Native(`self.offset()`) else left =...
 it seems theres a bunch of jquery only methods that arent available in zepto being called. Had to remove about 7 of them to get it to work I...
Can you add how to create a static version of opal-query in doc? Thanks
just like https://api.jquery.com/load/ when i use load in opal-jquery, it has error: ``` cause: Object { "$$id": 4, apply: apply(), call: apply() } message: "cannot load such file -- accounts/test"...