Browse files

Changes the duplicate binding warning to an SC.warn so that it is mor…

…e noticeable as a problem in the console that needs addressing.
  • Loading branch information...
1 parent 49fa254 commit 246fca8b3d93d3c05ee1dc23f0d28825d88f7ca6 @publickeating publickeating committed Sep 8, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 frameworks/runtime/system/object.js
View
3 frameworks/runtime/system/object.js
@@ -133,9 +133,8 @@ SC._object_extend = function _object_extend(base, ext, proto) {
for (var i = bindings.length - 1; i >= 0; i--) {
if (bindings[i] === key) {
// There is already a binding for this key!
- SC.Logger.warnGroup("Developer Warning: '%@' was defined twice on the same class, likely because it was defined on both the parent and its subclass. See the initial line of the following trace:".fmt(key));
+ SC.warn("Developer Warning: '%@' was defined twice on the same class, likely because it was defined on both the parent and its subclass. See the initial line of the following trace:".fmt(key));
SC.Logger.trace();
- SC.Logger.warnGroupEnd();
}
}
//@endif

0 comments on commit 246fca8

Please sign in to comment.