Skip to content

Commit e992a6b

Browse files
committed
Added comment
1 parent 8733afc commit e992a6b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/av_merged.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5482,6 +5482,25 @@
54825482

54835483
AV.Object._extend = AV._extend;
54845484

5485+
/**
5486+
* Creates a new model with defined attributes,
5487+
* It's the same with
5488+
* <pre>
5489+
* new AV.Object(attributes, options);
5490+
* </pre>
5491+
* @param {Object} attributes The initial set of data to store in the object.
5492+
* @param {Object} options A set of Backbone-like options for creating the
5493+
* object. The only option currently supported is "collection".
5494+
* @return {AV.Object}
5495+
* @since v0.4.4
5496+
* @see AV.Object
5497+
* @see AV.Object.extend
5498+
*/
5499+
AV.Object.new = function(attributes, options){
5500+
return new AV.Object(attributes, options);
5501+
};
5502+
5503+
54855504
/**
54865505
* Creates a new subclass of AV.Object for the given AV class name.
54875506
*

0 commit comments

Comments
 (0)