record.js revision 75659cb0e2deef88afd156725ab2726ee4f963a7
}
/**
* Class name.
*
* @property NAME
* @type String
* @static
* @final
* @value "record"
*/
/////////////////////////////////////////////////////////////////////////////
//
// Record Attributes
//
/////////////////////////////////////////////////////////////////////////////
id: {
valueFn: "_setId",
writeOnce: true
},
data : {
}
};
/* Record extends Base */
_setId: function() {
return Y.guid();
},
initializer: function() {
},
destructor: function() {
},
if (!field) {
return this.get("data");
}
else {
//This should remain [field] instead of .field, because [field] can handle strings
}
return null;
}
});