Skip to content

Commit

Permalink
canjs#716 can.Model now warns if now static properties are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mjstahl committed May 28, 2014
1 parent 3594fee commit 5214e1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ steal('can/util', 'can/map', 'can/list', function (can) {
// Assume no static properties were passed. (`can.Model.extend({ ... })`)
// This is really unusual for a model though, since there's so much configuration.
if (!protoProps) {
can.dev.warn("can/model/model.js: can.Model extended without static properties.");
protoProps = staticProps;
}

Expand Down

0 comments on commit 5214e1b

Please sign in to comment.