Comparing version 0.9.4 to 0.9.5
17
index.js
@@ -1086,7 +1086,8 @@ if (typeof require === 'function') { | ||
context.removeNode(node); | ||
emitRemovedBinding(context, ignore, node.$bindNode); | ||
emitRemovedBinding(context, ignore, node.$bindStart); | ||
emitRemovedBinding(context, ignore, node.$bindItemStart); | ||
emitRemovedBinding(context, ignore, node, '$bindNode'); | ||
emitRemovedBinding(context, ignore, node, '$bindStart'); | ||
emitRemovedBinding(context, ignore, node, '$bindItemStart'); | ||
var attributes = node.$bindAttributes; | ||
if (attributes) { | ||
node.$bindAttributes = null; | ||
for (var key in attributes) { | ||
@@ -1100,5 +1101,9 @@ context.removeBinding(attributes[key]); | ||
} | ||
function emitRemovedBinding(context, ignore, binding) { | ||
if (binding && binding !== ignore) { | ||
context.removeBinding(binding); | ||
function emitRemovedBinding(context, ignore, node, property) { | ||
var binding = node[property]; | ||
if (binding) { | ||
node[property] = null; | ||
if (binding !== ignore) { | ||
context.removeBinding(binding); | ||
} | ||
} | ||
@@ -1105,0 +1110,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"main": "./lib/index.js", | ||
@@ -12,0 +12,0 @@ "scripts": { |
@@ -1,3 +0,1 @@ | ||
[![browser support](https://ci.testling.com/derbyjs/saddle.png)](https://ci.testling.com/derbyjs/saddle) | ||
# Saddle | ||
@@ -4,0 +2,0 @@ |
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
100543
2588
23