diff --git a/Phi/lib/knockprops.js b/Phi/lib/knockprops.js index 8ff0e8d34..645d86b2e 100644 --- a/Phi/lib/knockprops.js +++ b/Phi/lib/knockprops.js @@ -175,6 +175,16 @@ define(['knockout'], function(ko) { } } + self.makeObservablesForAllProperties = function(target) { + for( var p in self.aliases ) { + if( self.aliases.hasOwnProperty(p) ) { + target[p] = ko.observable().extend({ + fgprop : p + }); + } + } + } + self.props = {}; self.get = function(target, prop) {