Created
July 19, 2013 13:00
-
-
Save ExtAnimal/6038943 to your computer and use it in GitHub Desktop.
Overnesting highlighter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried putting this in chrome console but it says "TypeError: Cannot read property 'each' of undefined"
I am using ExtJs3.4