Evan You 13 лет назад
Родитель
Сommit
d0c96c5c25
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 0
      src/binding.js
  2. 1 1
      src/directive-parser.js

+ 4 - 0
src/binding.js

@@ -115,6 +115,10 @@ BindingProto.update = function (value) {
     this.pub()
 }
 
+/*
+ *  -- computed property only --    
+ *  Force all instances to re-evaluate themselves
+ */
 BindingProto.refresh = function () {
     var i = this.instances.length
     while (i--) {

+ 1 - 1
src/directive-parser.js

@@ -58,8 +58,8 @@ DirProto.update = function (value) {
 }
 
 /*
+ *  -- computed property only --
  *  called when a dependency has changed
- *  computed properties only
  */
 DirProto.refresh = function () {
     // pass element and scope info to the getter