I recently digged into the sourcecode (because of my other question) and stumpled over the following line
storeId = (name.indexOf("@") == -1) ? name : name.split("@")[0]
within the application-controller getStore() method (ExtJS version 4.1.3).
Now I wonder for what is the @ whitin the storename? I never seen that before.
The code in
Ext.app.Controlleruses the ‘@’ to create unambiguous class names, where it’s obvious which part is the class name and which part is the namespace. The format is supposed to look something likeModel@Name.spaceaccording to the source.The method of getting the
storeIdthat you posted just means that if there’s a ‘@’ then get the class name (the part before the ‘@’) and if there’s not, then take the whole thing.