Sha256: 18010d6514f15ea2a158cc7a0a757fc983962f82a863006a90ee41576ba10359
Contents?: true
Size: 863 Bytes
Versions: 2
Compression:
Stored size: 863 Bytes
Contents
// ======================================================================== // SproutCore -- JavaScript Application Framework // ======================================================================== /** Extend SC.Binding with properites that make it easier to detect bindings in the inspector */ SC.Binding.isBinding = true; SC.Binding.displayValue = function(){ var from = this._fromRoot ? "<%@>:%@".fmt(this._fromRoot,this._fromPropertyPath) : this._fromPropertyPath; var to = this._toPropertyPath; var oneWay = this._oneWay ? '[oneWay]' : ''; return "%@ -> %@ %@".fmt(from, to, oneWay); }; SC.Binding.encodeDesign = function(coder){ var ret = "SC.Binding"; if(this._fromPropertyPath){ ret= ret+".from('"+this._fromPropertyPath+"')"; } if(this._oneWay){ ret = ret+".oneWay()"; } return ret;//coder.js(key,ret); };
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
spade-0.0.1 | sproutcore/frameworks/designer/ext/binding.js |
sproutcore-1.5.0.pre.5 | lib/frameworks/sproutcore/frameworks/designer/ext/binding.js |