add convenience .on function as alias for addEventListener

This commit is contained in:
Fabian Jakobs 2010-09-29 17:24:08 +02:00
commit de2a977a42

View file

@ -26,6 +26,7 @@ require.def("ace/MEventEmitter", ["ace/lib/lang"], function(lang) {
}
};
MEventEmitter.on =
MEventEmitter.addEventListener = function(eventName, callback) {
this.$eventRegistry = this.$eventRegistry || {};