Permalink
Browse files

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

  • Loading branch information...
neonstalwart committed Jan 3, 2012
1 parent 18a4eee commit fd5234439604534b9414dc3bbc2374c6ec6ebcf1
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/Model.js
View
@@ -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.