Sha256: 20e1e624d3c70e3cfdfcf2eac03fff9bc0c44e996fd4147675472ff1b5d960be
Contents?: true
Size: 1.23 KB
Versions: 41
Compression:
Stored size: 1.23 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== // ======================================================================== // 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
41 entries across 41 versions & 1 rubygems