Sha256: b35d0b72902b0517b9eb72f1b269a2ce05bc46e81c2ef59979ba77d31a4c1ce1
Contents?: true
Size: 944 Bytes
Versions: 4
Compression:
Stored size: 944 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2010 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== SC.mixin(SC.Record, { /** Returns a SC.PolymorphicSingleAttribute that converts the underlying ID to a number of types, dependent on a attribute on the record (the name of this attribute is provided by the typeKey property). @param {Array} recordTypes the array of record types the object could be @param {Hash} opts additional options @returns {SC.PolymorphicSingleAttribute} created instance */ toOneOf: function(recordTypes, opts) { return SC.PolymorphicSingleAttribute.attr(recordTypes, opts); } });
Version data entries
4 entries across 4 versions & 2 rubygems