Results 1 to 2 of 2

Thread: SA 2.1 is overwriting my override class

  1. #1
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    832
    Vote Rating
    25
      0  

    Default SA 2.1 is overwriting my override class

    I thought that expected behavior was that SA would never over write the "override" class. I've created this override class that does exactly what I want (and surprisingly works). Everytime I do a save in SA, it overwrites any changes I've made outside SA.

    It does seem that if I do not have SA running that I can work on my class. Is this intended? (I'm hoping it's a bug). I love SA and I don't want to close it!!! I'm sure you can understand that guys.

    Code:
     Ext.define('SessionApp.store.override.SessionStore1', {    override: 'SessionApp.store.SessionStore1',
    
    
        constructor: function () {
    
    
            this.data = this.CreateData();
            this.callParent(arguments);
        },
        CreateData: function () {
    
    
            data = [[1101, 'Ed', 'room1', 'time1'], [1102, 'Aaron', 'room2', 'time2']];
            return data;
    
    
        }
    });

  2. #2
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    406
    Vote Rating
    100
      0  

    Default In the lastest SA version you need to close the Override code tab

    In the latest Architect version Version: 2.2.2 Build: 991, you need to close tabs with code showing the overrides, only then the overrides do not get overwritten.

    A bit annoying, but very well workable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •