Commits

Kenneth Jørgensen committed 3e1eeb5

I don't see a reason why you shouldn't be able to add mdoels to a compelted loader

  • Participants
  • Parent commits b2f5333
  • Tags 0.1.0-dev.3

Comments (0)

Files changed (2)

     Loader.prototype.add = function(name, model) {
       var i, key, val, _i, _len,
         _this = this;
-      if (this.completed) {
-        throw new Error("Models cannot be added to a completed Loader");
-      }
       if (name == null) {
         return this;
       }

src/Loader.coffee

 
 	# Adds a model to the loader.
 	add: (name, model) ->
-		throw new Error "Models cannot be added to a completed Loader" if @completed
+		#throw new Error "Models cannot be added to a completed Loader" if @completed
 		return @ if !name?
 		# Arrays.
 		if _.isArray name