23 Sep 2013 8:15 AM #1
Model and Store Names Mysteriously Renamed
Version: SA3 Public Beta on Mac OS X Mountain Lion
Problem: Previously created and named Model and Store names automatically changed to their respective default names (e.g., 'MyModel' & 'MyXMLStore') in the App.js file upon a save operation.
What triggered it?: I don't have a clue. The last action I performed prior to saving the project was adding fields to two separate Models. The Models I changed were NOT the Model names in the App.js file that reverted to the SA default naming scheme. The only thing I observed about the glitch was that the Model and Store who's names automatically changed were the LAST names in the list of Models and Stores, respectively, in the App.js file.
Expected behavior: Obviously, Model and Store references should never change on their own.
24 Sep 2013 6:41 AM #2
Hrm, definitely sounds like a bug. We'll be on the lookout, can you reliably reproduce this?Aaron Conran
24 Sep 2013 6:58 AM #3
Hi, Aaron - thanks for the reply. I have changed Model and Store configs literally dozens of times in the project I'm working on and this has happened only once. I will run some experiments today in an attempt to reproduce the error. If I can get it to fire, I'll let you know the exact steps I took to make it happen again.
24 Sep 2013 7:04 AM #4
26 Sep 2013 6:07 PM #5
- Join Date
- Mar 2007
- Melbourne, Australia (aka GMT+10)
- Vote Rating
Aaron, i find that if you modify something that is linked to another component, or is something to do with class names or filenames, and don't save 'before' you then configure the class you're working on it throws and error, or configures incorrectly.
An example is when you rename the class.
I'll work on some reproducable steps as I find more.Lead Trainer / Sencha Specialist
Teahouse Training Company
SenchaWorld.com - Videos, and stuff
Sencha.Community - Tools, Extensions and Resources
TeahouseHQ.com - Sencha Ecosystem Training Portal
Code Validation : JSLint | JSONLint | JSONPLint