Make it possible to register a new {{tabs}} control without deleting existing {{tabs}} by specifying a namespace. E.g. make all jQueryUI tags have namespace ui. Now if I register my.tabs - using 'my' namespace, I can then use {{tabs}} - which will use my.tabs (since it was the last to be registered) as will {{my.tabs}}. But I can still use the jQueryUI {{tabs}} by specifying the namespace: {{ui.tabs}}.
Note that I considered an alternative - of automatically copying an existing registered resource to a different name. Existin {{tabs}} for example would get copied over to {{tabs2}} - using the following code
if (name) {
oldItem = thisStore[name];
thisStore[name] = item;
if (oldItem) { // Consider this - reregistering existing item under different name
cnt = 2; // There is already an item with that name.
while (itemName = name + cnt++, thisStore[itemName]) {}
thisStore[itemName] = oldItem; // Copy it to name2 (or name3... if name2 already used)
if (onStore) {
onStore(itemName, oldItem, parentTmpl, compile);
}
}
}
But that approach seems to be undiscoverable. and can lead to unnecessary creation of new resources.
Make it possible to register a new
{{tabs}}
control without deleting existing{{tabs}}
by specifying a namespace. E.g. make all jQueryUI tags have namespace ui. Now if I registermy.tabs
- using 'my' namespace, I can then use{{tabs}}
- which will use my.tabs (since it was the last to be registered) as will{{my.tabs}}
. But I can still use the jQueryUI{{tabs}}
by specifying the namespace:{{ui.tabs}}
.Note that I considered an alternative - of automatically copying an existing registered resource to a different name. Existin
{{tabs}}
for example would get copied over to{{tabs2}}
- using the following codeBut that approach seems to be undiscoverable. and can lead to unnecessary creation of new resources.