|
@@ -1,5 +1,6 @@
|
|
import _ from 'lodash'
|
|
import _ from 'lodash'
|
|
import initMainTab from './controls/MainTab'
|
|
import initMainTab from './controls/MainTab'
|
|
|
|
+import initPanel from './controls/panel'
|
|
import initGrid from './controls/grid'
|
|
import initGrid from './controls/grid'
|
|
import initTextfield from './controls/input/textfield'
|
|
import initTextfield from './controls/input/textfield'
|
|
import initToolbar from './controls/toolbar/toolbar'
|
|
import initToolbar from './controls/toolbar/toolbar'
|
|
@@ -64,7 +65,10 @@ export function init() {
|
|
*/
|
|
*/
|
|
const _doAddListener = Ext.mixin.Observable.prototype.doAddListener
|
|
const _doAddListener = Ext.mixin.Observable.prototype.doAddListener
|
|
Ext.mixin.Observable.prototype.doAddListener = function (ename, fn, scope, options, order, caller, manager) {
|
|
Ext.mixin.Observable.prototype.doAddListener = function (ename, fn, scope, options, order, caller, manager) {
|
|
- if (typeof fn === 'string' &&
|
|
|
|
|
|
+ if (window["IS_DESIGN_MODE"]) {
|
|
|
|
+ fn = Ext.emptyFn
|
|
|
|
+
|
|
|
|
+ } else if (typeof fn === 'string' &&
|
|
(_.startsWith(fn, 'scope.') ||
|
|
(_.startsWith(fn, 'scope.') ||
|
|
_.startsWith(fn, 'system.') ||
|
|
_.startsWith(fn, 'system.') ||
|
|
_.startsWith(fn, 'format.')
|
|
_.startsWith(fn, 'format.')
|
|
@@ -82,6 +86,7 @@ export function init() {
|
|
_doAddListener.call(this, ename, fn, scope, options, order, caller, manager)
|
|
_doAddListener.call(this, ename, fn, scope, options, order, caller, manager)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ initPanel()
|
|
initGrid()
|
|
initGrid()
|
|
initMainTab()
|
|
initMainTab()
|
|
initTextfield()
|
|
initTextfield()
|