js.Browser.document.onclick = function(e:js.html.KeyboardEvent){
window.document.onclick = function(e) {
for extern class, why not remove the "$bind" to get the cleaner output???
and for js-es5, why not just using `Function.prototype.bind` instead "$bind" ???
There's also an important feature of $bind: it always return the same reference (for the same function and scope), which allows you to addListener/removeListener without saving the result of the binding, which would be very confusing as you never write the binding code yourself.
However you're right that in your example the $bind is superfluous.
Philippe
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.