Comparing version 0.1.6 to 0.1.7
@@ -617,5 +617,6 @@ (function(){ | ||
collectomatic: function (collection, ViewClass, options) { | ||
var views = {}; | ||
var views = {}, self = this; | ||
this.bindomatic(collection, 'add', function (model) { | ||
views[model.cid] = new ViewClass(_({model: model}).extend(options)); | ||
views[model.cid].parent = self; | ||
}); | ||
@@ -633,2 +634,3 @@ this.bindomatic(collection, 'remove', function (model) { | ||
views[model.cid] = new ViewClass(_({model: model}).extend(options)); | ||
views[model.cid].parent = self; | ||
}); | ||
@@ -643,2 +645,3 @@ }, {trigger: true}); | ||
views[model.cid] = new ViewClass(_({model: model}).extend(options)); | ||
views[model.cid].parent = self; | ||
}); | ||
@@ -645,0 +648,0 @@ }); |
{ | ||
"name": "capsule", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/andyet/Capsule", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147607
890