Browse Source

models and stores

master
guy 7 years ago
parent
commit
99a40d9585
  1. 39
      bi/core.js
  2. 39
      dist/bundle.js
  3. 30
      dist/bundle.min.js
  4. 39
      dist/core.js
  5. 15
      src/core/model.js
  6. 20
      src/core/store.js

39
bi/core.js

@ -20530,7 +20530,22 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
; ;
(function () { (function () {
var _WidgetsPlugin = {}; var _WidgetsPlugin = {};
@ -21703,7 +21718,27 @@ $.extend(String, {
return args[i]; return args[i];
}); });
} }
});BI.EventListener = { });;(function () {
var kv = {};
BI.models = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
listen: function listen(target, eventType, callback) { listen: function listen(target, eventType, callback) {
if (target.addEventListener) { if (target.addEventListener) {
target.addEventListener(eventType, callback, false); target.addEventListener(eventType, callback, false);

39
dist/bundle.js vendored

@ -20530,7 +20530,22 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
; ;
(function () { (function () {
var _WidgetsPlugin = {}; var _WidgetsPlugin = {};
@ -21703,7 +21718,27 @@ $.extend(String, {
return args[i]; return args[i];
}); });
} }
});BI.EventListener = { });;(function () {
var kv = {};
BI.models = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
listen: function listen(target, eventType, callback) { listen: function listen(target, eventType, callback) {
if (target.addEventListener) { if (target.addEventListener) {
target.addEventListener(eventType, callback, false); target.addEventListener(eventType, callback, false);

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

39
dist/core.js vendored

@ -20530,7 +20530,22 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
; ;
(function () { (function () {
var _WidgetsPlugin = {}; var _WidgetsPlugin = {};
@ -21703,7 +21718,27 @@ $.extend(String, {
return args[i]; return args[i];
}); });
} }
});BI.EventListener = { });;(function () {
var kv = {};
BI.models = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
listen: function listen(target, eventType, callback) { listen: function listen(target, eventType, callback) {
if (target.addEventListener) { if (target.addEventListener) {
target.addEventListener(eventType, callback, false); target.addEventListener(eventType, callback, false);

15
src/core/model.js

@ -0,0 +1,15 @@
;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();

20
src/core/store.js

@ -0,0 +1,20 @@
;(function () {
var kv = {};
BI.models = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
Loading…
Cancel
Save