comment updates

This commit is contained in:
Evan You 2013-08-12 11:00:23 -04:00
parent 9546965ae0
commit d0c96c5c25
2 changed files with 5 additions and 1 deletions

View File

@ -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--) {

View File

@ -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