You can do now
editor.on("focus", function() { ... });
editor.on("blur", function() { ... });
Best,
Fabian
> --
> You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
> To post to this group, send email to ace-d...@googlegroups.com.
> To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.
>
>
> You can do now
>
> editor.on("focus", function() { ... });
> editor.on("blur", function() { ... });
Why reinvent the wheel and decrease readability? If editor is
not a DOM node but a private object,
editor.addEventListener( aEventName, aCallback)
is better and more conformant to web authors' habits. It will also
allow custom events.
</Daniel>
Le 02/02/11 19:17, Fabian Jakobs a écrit :
You can do now
editor.on("focus", function() { ... });
editor.on("blur", function() { ... });
Why reinvent the wheel and decrease readability? If editor is
not a DOM node but a private object,
editor.addEventListener( aEventName, aCallback)
is better and more conformant to web authors' habits. It will also
allow custom events.
Actually both will work. I code a lot with node.js and there "on" is
used. I personally find this more readable but we can argue days about
personal naming tastes.
Fabian
> is better and more conformant to web authors' habits. It will also
> allow custom events.
>
> </Daniel>
>