- Object<div class="mdesc"><div class="short">MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation \r
-simply returns ...</div><div class="long">MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation\r
-simply returns <b><code>item.id</code></b> but you can provide your own implementation\r
-to return a different value as in the following examples:<pre><code><i>// normal way\r</i>
-<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();\r
-mc.add(someEl.dom.id, someEl);\r
-mc.add(otherEl.dom.id, otherEl);\r
-<i>//and so on\r</i>
-\r
-<i>// using getKey\r</i>
-<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();\r
-mc.getKey = <b>function</b>(el){\r
- <b>return</b> el.dom.id;\r
-};\r
-mc.add(someEl);\r
-mc.add(otherEl);\r
-\r
-<i>// or via the constructor\r</i>
-<b>var</b> mc = <b>new</b> Ext.util.MixedCollection(false, <b>function</b>(el){\r
- <b>return</b> el.dom.id;\r
-});\r
-mc.add(someEl);\r
+ Object<div class="mdesc"><div class="short">MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation\r
+simply returns i...</div><div class="long">MixedCollection has a generic way to fetch keys if you implement getKey. The default implementation
+simply returns <b><code>item.id</code></b> but you can provide your own implementation
+to return a different value as in the following examples:<pre><code><i>// normal way</i>
+<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();
+mc.add(someEl.dom.id, someEl);
+mc.add(otherEl.dom.id, otherEl);
+<i>//and so on</i>
+
+<i>// using getKey</i>
+<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();
+mc.getKey = <b>function</b>(el){
+ <b>return</b> el.dom.id;
+};
+mc.add(someEl);
+mc.add(otherEl);
+
+<i>// or via the constructor</i>
+<b>var</b> mc = <b>new</b> Ext.util.MixedCollection(false, <b>function</b>(el){
+ <b>return</b> el.dom.id;
+});
+mc.add(someEl);