|
|
@ -62,7 +62,7 @@ const constantInjection = {}; |
|
|
|
|
|
|
|
|
|
|
|
export function constant(xtype, cls) { |
|
|
|
export function constant(xtype, cls) { |
|
|
|
if (isNotNull(constantInjection[xtype])) { |
|
|
|
if (isNotNull(constantInjection[xtype])) { |
|
|
|
_global.console && console.error(`constant: [${xtype}]already registered`); |
|
|
|
_global.console && console.warn(`constant: [${xtype}]already registered`); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
constantInjection[xtype] = cls; |
|
|
|
constantInjection[xtype] = cls; |
|
|
|
} |
|
|
|
} |
|
|
|