Sha256: 6210a1f78bbaa285db4e253bce0c8bb4792b2586bd7f96ae3f58e3c41162a3d7

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

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)
// ==========================================================================


/*jslint evil:true */

/** 
  Extend SC.View with emitDesign() which will encode the view and all of its
  subviews then computes an empty element to attach to the design.
*/
SC.View.prototype.emitDesign = function() {
  
  // get design...
  var ret = SC.DesignCoder.encode(this);
  
  return ret ;
};

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sproutcore-1.5.0-java lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js
sproutcore-1.5.0 lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js
sproutcore-1.5.0.rc.2 lib/frameworks/sproutcore/frameworks/designer/ext/view.js
sproutcore-1.5.0.rc.1 lib/frameworks/sproutcore/frameworks/designer/ext/view.js