added theme data to the events
added theme data to the events
This commit is contained in:
parent
923ca25057
commit
4c7abda807
1 changed files with 2 additions and 2 deletions
|
|
@ -1281,7 +1281,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
var _self = this;
|
var _self = this;
|
||||||
|
|
||||||
this.$themeValue = theme;
|
this.$themeValue = theme;
|
||||||
_self._dispatchEvent('themeChange',theme);
|
_self._dispatchEvent('themeChange',{theme:theme});
|
||||||
|
|
||||||
if (!theme || typeof theme == "string") {
|
if (!theme || typeof theme == "string") {
|
||||||
var moduleName = theme || "ace/theme/textmate";
|
var moduleName = theme || "ace/theme/textmate";
|
||||||
|
|
@ -1332,7 +1332,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
_self.onResize();
|
_self.onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
_self._dispatchEvent('themeLoaded');
|
_self._dispatchEvent('themeLoaded',{theme:theme});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue