2
0
Evan You 13 жил өмнө
parent
commit
d0c96c5c25

+ 4 - 0
src/binding.js

@@ -115,6 +115,10 @@ BindingProto.update = function (value) {
     this.pub()
     this.pub()
 }
 }
 
 
+/*
+ *  -- computed property only --    
+ *  Force all instances to re-evaluate themselves
+ */
 BindingProto.refresh = function () {
 BindingProto.refresh = function () {
     var i = this.instances.length
     var i = this.instances.length
     while (i--) {
     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
  *  called when a dependency has changed
- *  computed properties only
  */
  */
 DirProto.refresh = function () {
 DirProto.refresh = function () {
     // pass element and scope info to the getter
     // pass element and scope info to the getter