Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1037 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    0
    jochen.schoellig is on a distinguished road

      0  

    Default Model Save

    Model Save


    Hallo,

    i get always a failure when i try to save something in my model.

    Code:
    onNodeSelect:
        function(list, node) {
    	console.log('onNodeSelect');
    	console.log(node);		
    	node.set('name', 'test');
    	node.save({
                success: function() {
                console.log('erfolgreich');
    	}
        });
    },
    TypeError: 'true' is not a valid argument for 'in' (evaluating ''listeners' in config')

    Please help

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Can you provide how your Model/Store is configured.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    0
    jochen.schoellig is on a distinguished road

      0  

    Post Model, Store and Controller

    Model, Store and Controller


    Here are more Details...

    Model:

    Code:
    Ext.define('Homie.model.Room', {
        extend  : 'Ext.data.Model',
        requires: 'Homie.model.Node',
        
        fields: [
            { name: 'id',     type: 'int'    },
            { name: 'name',     type: 'string' },
            { name: 'type',     type: 'string' },
            { name: 'count', type: 'int'    }
        ],
        
        hasMany: { 
            model: 'Homie.model.Node', 
            name : 'nodes'
           },
        
        proxy: {
            type  : 'rest',
            url   : apiUrl + 'rooms',
            reader: 'json'
        }
    });

    Store:
    Code:
    Ext.define('Homie.store.Rooms', {
        extend  : 'Ext.data.Store',
        requires: 'Homie.model.Room',
        model   : 'Homie.model.Room',
        
          autoLoad: true
    });
    Controller:

    Code:
    ...
    
        onRoomSelect: function(list, room) {
            console.log('onRoomSelect');
            console.log(room);
            
            room.set('name', 'test');
            
            room.save({
                callback: function() {
                    console.log('erfolgreich');
                }
            });
        }
    ...

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Great, thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    This will be fixed as part of the next Touch 2.0 release. Thanks for the report.

Thread Participants: 2