Evan You 12 лет назад
Родитель
Сommit
faf055791e
2 измененных файлов с 2 добавлено и 10 удалено
  1. 2 2
      TODO.md
  2. 0 8
      src/seed.js

+ 2 - 2
TODO.md

@@ -1,7 +1,7 @@
-- parse textNodes?
+- parse textNodes
 - more directives / filters
     - sd-if
     - sd-with
     - sd-visible
-    - sd-style="transform:transform < x y z rotate"
+    - sd-style="transform:transform"
 - nested properties in scope (kinda hard, maybe later)

+ 0 - 8
src/seed.js

@@ -51,7 +51,6 @@ function Seed (el, options) {
     scope.$dump     = this._dump.bind(this)
     scope.$index    = options.index
     scope.$parent   = options.parentSeed && options.parentSeed.scope
-    scope.$refresh  = this._refreshBinding.bind(this)
 
     // add event listener to update corresponding binding
     // when a property is set
@@ -245,13 +244,6 @@ Seed.prototype._updateBinding = function (key, value) {
     binding.emitChange()
 }
 
-Seed.prototype._refreshBinding = function (key) {
-    var binding = this._bindings[key]
-    binding.instances.forEach(function (instance) {
-        instance.refresh()
-    })
-}
-
 Seed.prototype._parseDeps = function (binding) {
     depsObserver.on('get', function (dep) {
         if (!dep.dependents) {