Skip to content

Commit

Permalink
model: allow construct: false to stop function modules being called
Browse files Browse the repository at this point in the history
  • Loading branch information
neonstalwart committed Jan 3, 2012
1 parent 18a4eee commit fd52344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Model.js
Expand Up @@ -116,7 +116,7 @@ define([
deps = {}; deps = {};


// if the module is a function then we resolve it as a constructor // 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; registry = model.kernel.modelRegistry;
// get the models for all the specified dependencies // get the models for all the specified dependencies
arr.forEach(lang.keys(specs), function (key) { arr.forEach(lang.keys(specs), function (key) {
Expand Down

0 comments on commit fd52344

Please sign in to comment.