Skip to content

Instantly share code, notes, and snippets.

@ExtAnimal
Created July 19, 2013 13:00
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ExtAnimal/6038943 to your computer and use it in GitHub Desktop.
Save ExtAnimal/6038943 to your computer and use it in GitHub Desktop.
Overnesting highlighter
javascript:(Ext.ComponentManager.each(function(c) {
c = Ext.getCmp(c);
if (c.isContainer && !c.isHeader && !c.isXType('tablepanel') && !c.isXType('headercontainer') && !c.hasCls('x-fieldset-header') && c.items.items.length === 1) {
console.log(c.id + ' only contains 1 child: check for overnesting');
c.rendered && c.el.frame('red');
}
}));
@nitingautam
Copy link

I tried putting this in chrome console but it says "TypeError: Cannot read property 'each' of undefined"
I am using ExtJs3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment