added themeChange event

added themeChange event that is dispatched right before a theme is about to change
This commit is contained in:
Aaike Van Roekeghem 2012-12-11 03:26:18 +07:00
commit 923ca25057

View file

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