Sha256: 1fe6c039a8081c321e383655eba2f6294e83e09ee6d721279c4e28d8a0ff5b43

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2011, Strobe Inc. and contributors.
// Portions copyright ©2008 Apple Inc.  All rights reserved.
// ========================================================================

/**
  Patch SC.Object to respond to design
  
*/
SC.Object.prototype.emitDesign = function() {
  
  // get design...
  var ret = SC.ObjectCoder.encode(this);
  
  return ret ;
};


/** 
  Patch SC.Object to respond to encodeDesign().  This will proxy to the paired
  designer, if there is one.  If there is no paired designer, returns NO.
*/
SC.Object.prototype.encodeDesign = function(coder) {
  return this.designer ? this.designer.encodeDesign(coder) : NO ;
};

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/designer/ext/object.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/designer/ext/object.js