guy 7 years ago
parent
commit
a1382e8028
  1. 22
      bi/core.js
  2. 22
      dist/bundle.js
  3. 76
      dist/bundle.min.js
  4. 22
      dist/core.js
  5. 22
      src/core/inject.js

22
bi/core.js

@ -20193,6 +20193,14 @@ BI.extend(BI.DOM, {
storeInjection[xtype] = cls; storeInjection[xtype] = cls;
}; };
var serviceInjection = {};
BI.service = function (xtype, cls) {
if (serviceInjection[xtype] != null) {
throw ("service:[" + xtype + "] has been registed");
}
serviceInjection[xtype] = cls;
};
var providerInjection = {}; var providerInjection = {};
BI.provider = function (xtype, cls) { BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) { if (providerInjection[xtype] != null) {
@ -20253,6 +20261,20 @@ BI.extend(BI.DOM, {
} }
} }
var services = {};
BI.Services = {
getService: function (type, config) {
if (services[type]) {
return services[type];
}
return services[type] = new serviceInjection[type](config);
},
releaseService: function (type) {
delete services[type];
}
}
var providers = {}, providerInstance = {} var providers = {}, providerInstance = {}
BI.Providers = { BI.Providers = {

22
dist/bundle.js vendored

@ -20193,6 +20193,14 @@ BI.extend(BI.DOM, {
storeInjection[xtype] = cls; storeInjection[xtype] = cls;
}; };
var serviceInjection = {};
BI.service = function (xtype, cls) {
if (serviceInjection[xtype] != null) {
throw ("service:[" + xtype + "] has been registed");
}
serviceInjection[xtype] = cls;
};
var providerInjection = {}; var providerInjection = {};
BI.provider = function (xtype, cls) { BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) { if (providerInjection[xtype] != null) {
@ -20253,6 +20261,20 @@ BI.extend(BI.DOM, {
} }
} }
var services = {};
BI.Services = {
getService: function (type, config) {
if (services[type]) {
return services[type];
}
return services[type] = new serviceInjection[type](config);
},
releaseService: function (type) {
delete services[type];
}
}
var providers = {}, providerInstance = {} var providers = {}, providerInstance = {}
BI.Providers = { BI.Providers = {

76
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

22
dist/core.js vendored

@ -20193,6 +20193,14 @@ BI.extend(BI.DOM, {
storeInjection[xtype] = cls; storeInjection[xtype] = cls;
}; };
var serviceInjection = {};
BI.service = function (xtype, cls) {
if (serviceInjection[xtype] != null) {
throw ("service:[" + xtype + "] has been registed");
}
serviceInjection[xtype] = cls;
};
var providerInjection = {}; var providerInjection = {};
BI.provider = function (xtype, cls) { BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) { if (providerInjection[xtype] != null) {
@ -20253,6 +20261,20 @@ BI.extend(BI.DOM, {
} }
} }
var services = {};
BI.Services = {
getService: function (type, config) {
if (services[type]) {
return services[type];
}
return services[type] = new serviceInjection[type](config);
},
releaseService: function (type) {
delete services[type];
}
}
var providers = {}, providerInstance = {} var providers = {}, providerInstance = {}
BI.Providers = { BI.Providers = {

22
src/core/inject.js

@ -23,6 +23,14 @@
storeInjection[xtype] = cls; storeInjection[xtype] = cls;
}; };
var serviceInjection = {};
BI.service = function (xtype, cls) {
if (serviceInjection[xtype] != null) {
throw ("service:[" + xtype + "] has been registed");
}
serviceInjection[xtype] = cls;
};
var providerInjection = {}; var providerInjection = {};
BI.provider = function (xtype, cls) { BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) { if (providerInjection[xtype] != null) {
@ -83,6 +91,20 @@
} }
} }
var services = {};
BI.Services = {
getService: function (type, config) {
if (services[type]) {
return services[type];
}
return services[type] = new serviceInjection[type](config);
},
releaseService: function (type) {
delete services[type];
}
}
var providers = {}, providerInstance = {} var providers = {}, providerInstance = {}
BI.Providers = { BI.Providers = {

Loading…
Cancel
Save