[WIP] mQuery (jQuery Wrapper)

Monkey Targets Forums/HTML5/[WIP] mQuery (jQuery Wrapper)

Luke111(Posted 2013) [#1]
Hi everyone!
I have been silently hanging around this forum since around v3x, but it is time to contribute.

I am making a jQuery wrapper for monkey. Note that a lot of the stuff that would normally work in jQuery will not work for a while.
In particular, I am trying to recall passing function pointers, so we can pass function pointers to jQuery for things like event listeners. I am studying the DOM module as I go, and I think it may help me figure out this problem.. maybe.

It this a good idea?
Has anyone else done it before, so I don't have to reinvent the wheel?


AdamRedwoods(Posted 2013) [#2]
re: passing function pointers

yeah, this is a tough egg to crack. you either have to create a new target and modify the trans class, or create an extern native js class to handle it.

i was hoping there'd be extern interfaces (which would be a substitution for function pointers) but not going to happen soon:
http://monkeycoder.co.nz/Community/posts.php?topic=5612