Sha256: 254c048b0c71a1aa7a675a5097bd4fd5480ad751031c5c4b3a688e65637309a9

Contents?: true

Size: 902 Bytes

Versions: 2

Compression:

Stored size: 902 Bytes

Contents

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

require('design.mode/coders/object');
require('views/view');

/** @class

  A LocalizationCoder encodes specifically the localization for views.
  
  @extends SC.ObjectCoder
*/
SC.LocalizationCoder = SC.ObjectCoder.extend({
  extendMethodName: 'localization',
  encodeMethodName: 'encodeLoc'
});

/** 
  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.encodeLoc = function(coder) {
  return this.designer ? this.designer.encodeLoc(coder) : NO ;
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/designer/coders/localization.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/designer/coders/localization.js