Permalink
Browse files

'$ E' now also prints the name of object sent to console

chore: $ E logs names for only EmberObjects to avoid duplicate logging
  • Loading branch information...
1 parent c97cdb0 commit 41015925a822d3f56f089447b70d7439349fffd7 @arjunkathuria arjunkathuria committed Nov 5, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 ember_debug/object-inspector.js
@@ -207,7 +207,11 @@ export default EmberObject.extend(PortMixin, {
if (value instanceof Error) {
value = value.stack;
}
- this.get("adapter").log('Ember Inspector ($E): ', value);
+ let args = [value];
+ if (value instanceof EmberObject) {
+ args.unshift(inspect(value));
+ }
+ this.get("adapter").log('Ember Inspector ($E): ', ...args);
},
digIntoObject(objectId, property) {

0 comments on commit 4101592

Please sign in to comment.