Skip to content
Browse files

model: allow `construct: false` to stop function modules being called

  • Loading branch information...
1 parent 18a4eee commit fd5234439604534b9414dc3bbc2374c6ec6ebcf1 @neonstalwart neonstalwart committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/Model.js
View
2 model/Model.js
@@ -116,7 +116,7 @@ define([
deps = {};
// if the module is a function then we resolve it as a constructor
- if (typeof module === 'function') {
+ if (typeof module === 'function' && model.constructor !== false) {
registry = model.kernel.modelRegistry;
// get the models for all the specified dependencies
arr.forEach(lang.keys(specs), function (key) {

0 comments on commit fd52344

Please sign in to comment.
Something went wrong with that request. Please try again.