Skip to content

Commit 70f2b6e

Browse files
committed
Merge pull request #182 from leeyeh/chore
[fix] Use square bracket notation.
2 parents fe8e1e7 + 53ef3b7 commit 70f2b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/object.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ module.exports = function(AV) {
12911291
* @see AV.Object
12921292
* @see AV.Object.extend
12931293
*/
1294-
AV.Object.new = function(attributes, options){
1294+
AV.Object['new'] = function(attributes, options){
12951295
return new AV.Object(attributes, options);
12961296
};
12971297

@@ -1360,7 +1360,7 @@ module.exports = function(AV) {
13601360
var newArguments = [className].concat(AV._.toArray(arguments));
13611361
return AV.Object.extend.apply(NewClassObject, newArguments);
13621362
};
1363-
NewClassObject.new = function(attributes, options){
1363+
NewClassObject['new'] = function(attributes, options){
13641364
return new NewClassObject(attributes, options);
13651365
};
13661366
AV.Object._classMap[className] = NewClassObject;

0 commit comments

Comments
 (0)