backbone-workbench
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -52,3 +52,3 @@ (function (root, factory) { | ||
if (!subview) { | ||
subview = subviews[key] = fn(subkey, el); | ||
subview = subviews[key] = fn(subkey, _.partial(getDataAttribute, el)); | ||
subview.remove = _.wrap(subview.remove, _.partial(subviewRemoveWrapper, view, key)); | ||
@@ -95,4 +95,4 @@ subview.render(); | ||
var subviewRemoveWrapper = function (parent, key, remove) { | ||
var subviews = getSubviews(parent); | ||
var subviewRemoveWrapper = function (view, key, remove) { | ||
var subviews = getSubviews(view); | ||
delete subviews[key]; | ||
@@ -99,0 +99,0 @@ return remove.call(this); |
@@ -5,3 +5,3 @@ { | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/backbone-workbench.js", | ||
@@ -8,0 +8,0 @@ |
52566