1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| define: function (className, data, createdFn) { if (data.override) { return Manager.createOverride.apply(Manager, arguments); }
return Manager.create.apply(Manager, arguments); },
create: function(className, data, createdFn) { var ctor = makeCtor(); if (typeof data == 'function') { data = data(ctor); }
data.$className = className;
return new Class(ctor, data, function() {
Ext.Class = ExtClass = function(Class, data, onCreated) { if (typeof Class != 'function') { onCreated = data; data = Class; Class = null; }
if (!data) { data = {}; }
Class = ExtClass.create(Class, data);
ExtClass.process(Class, data, onCreated);
return Class; };
|