added theme data to the events

added theme data to the events
This commit is contained in:
Aaike Van Roekeghem 2012-12-11 03:30:09 +07:00
commit 4c7abda807

View file

@ -1281,7 +1281,7 @@ var VirtualRenderer = function(container, theme) {
var _self = this;
this.$themeValue = theme;
_self._dispatchEvent('themeChange',theme);
_self._dispatchEvent('themeChange',{theme:theme});
if (!theme || typeof theme == "string") {
var moduleName = theme || "ace/theme/textmate";
@ -1332,7 +1332,7 @@ var VirtualRenderer = function(container, theme) {
_self.onResize();
}
_self._dispatchEvent('themeLoaded');
_self._dispatchEvent('themeLoaded',{theme:theme});
}
};