|
|
@@ -65,7 +65,7 @@ Seed.prototype._compileNode = function (node, root) {
|
|
|
|
|
|
self._compileTextNode(node)
|
|
|
|
|
|
- } else if (node.nodeType !== 8) { // exclude comment nodes
|
|
|
+ } else if (node.nodeType === 1) {
|
|
|
|
|
|
var eachExp = node.getAttribute(eachAttr),
|
|
|
ctrlExp = node.getAttribute(ctrlAttr)
|
|
|
@@ -192,7 +192,7 @@ Seed.prototype._createBinding = function (key) {
|
|
|
return binding.value
|
|
|
},
|
|
|
set: function (value) {
|
|
|
- if (value === binding) return
|
|
|
+ if (value === binding.value) return
|
|
|
binding.changed = true
|
|
|
binding.value = value
|
|
|
binding.instances.forEach(function (instance) {
|