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

Version Path
sproutcore-1.6.0.1 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.2-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.2 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.6.0.beta.1 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.5.0-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.5.0 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js
sproutcore-1.5.0.rc.2 lib/frameworks/sproutcore/frameworks/designer/ext/binding.js