Merge pull request #1148 from Aaike/master
added 'themeChange' and 'themeLoaded' event
This commit is contained in:
commit
5357b5f33d
1 changed files with 4 additions and 0 deletions
|
|
@ -1281,6 +1281,8 @@ var VirtualRenderer = function(container, theme) {
|
||||||
var _self = this;
|
var _self = this;
|
||||||
|
|
||||||
this.$themeValue = theme;
|
this.$themeValue = 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";
|
||||||
|
|
||||||
|
|
@ -1329,6 +1331,8 @@ var VirtualRenderer = function(container, theme) {
|
||||||
_self.$size.width = 0;
|
_self.$size.width = 0;
|
||||||
_self.onResize();
|
_self.onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_self._dispatchEvent('themeLoaded',{theme:theme});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue