Permalink
Browse files

updated a console.warn message to provide a link to the object being …

…logged, rather than a string representing an object
  • Loading branch information...
jlbruno committed Apr 13, 2012
1 parent fea78fb commit 346cdb79df957821a1be26e6d2af3f5374523458
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/reader.js
View
@@ -410,7 +410,7 @@ Monocle.Reader = function (node, bookData, options, onLoadCallback) {
function addControl(ctrl, cType, options) {
for (var i = 0; i < p.controls.length; ++i) {
if (p.controls[i].control == ctrl) {
- console.warn("Already added control: " + ctrl);
+ console.warn("Already added control: %o", ctrl);
return;
}
}

0 comments on commit 346cdb7

Please sign in to comment.