Joined December 2012
·

Mutahhir

Hog Bay Software
·
Kuala Lumpur, Malaysia
·
·
·

Posted to Beginning parsers with PEG.js over 1 year ago

@alpacaaa Glad you found it useful!

Good writing. Enjoyed reading it. Keep it up.

Posted to How I write Javascript classes over 1 year ago

@dpashkevich I just posted another protip regarding how I use inheritance. Hopefully should be interesting for you.

One of the important quirks is that you would have to call event.preventDefault() on most events in order to get it to work on most browsers. Some insane logic there, but the preventDefault is there to tell the browser that we don't want the default implementation. (Read PPK's rant on this if you feel like: http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html) Though I think his take is a bit extreme, drag drop can be made to work well if you try. Could be better, but works.

Achievements
390 Karma
38,624 Total ProTip Views