diff --git a/examples/dev.html b/examples/dev.html
index 89b4fbdec..b882d0876 100644
--- a/examples/dev.html
+++ b/examples/dev.html
@@ -25,8 +25,8 @@
BI.config("bi.provider.system", function (provider) {
provider.addDependencies({
"my.module": {
- min: "2.0",
- max: "4.0"
+ minVersion: "1.0",
+ maxVersion: "4.0"
}
})
})
diff --git a/src/core/6.inject.js b/src/core/6.inject.js
index 4506c37d8..0f9b04fc6 100644
--- a/src/core/6.inject.js
+++ b/src/core/6.inject.js
@@ -108,12 +108,12 @@
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
- var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
- if (min && module.version < min){
+ var minVersion = dependencies[module.moduleId].minVersion, maxVersion = dependencies[module.moduleId].maxVersion;
+ if (minVersion && module.version < minVersion){
findVersion = true;
break;
}
- if(max && module.version > max){
+ if(maxVersion && module.version > maxVersion){
findVersion = true;
break;
}