Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    46
    Vote Rating
    0
    Zyphrax is on a distinguished road

      0  

    Post Operation.commitRecords fails, wrong Ext.util.MixedCollection init?

    Operation.commitRecords fails, wrong Ext.util.MixedCollection init?


    REQUIRED INFORMATION

    Ext version tested:
    • Touch 2.0-pr2
    Browser versions tested against:
    • Chrome
    Description:
    • I'm working on a store-to-store system for syncing data between localStorage and my rest services.
    • Somewhere deep in sencha code a call is made to commitRecords on the operation class:
    Code:
    commitRecords: function (serverRecords) {
         var me = this,
                        mc, index, clientRecords, serverRec, clientRec;
    
          if (!me.actionSkipSyncRe.test(me.action)) {
                    clientRecords = me.records;
                    if (clientRecords && clientRecords.length) {
                           mc = Ext.create('Ext.util.MixedCollection', true, function(r) {return r.getId();});
                           mc.addAll(clientRecords);
    • The following line is causing a javascript error
    Code:
    mc = Ext.create('Ext.util.MixedCollection', true, function(r) {return r.getId();});
    • It (indirectly) calls the constructor of Ext.mixin.Observable and finds that "true" isn't a valid config object.
    Code:
    constructor: function(config) {
            if (config) {
                if ('listeners' in config) {
    
    - The javascript error I get is that you can't use in on a boolean.

    Work around:
    Code:
    // Sencha bug: boolean is not a valid config object
    Ext.define('Ext.mixin.Hacks', {
    override: 'Ext.mixin.Observable',
    constructor: function(config) {
            if (config && Ext.isObject(config)) {
                if ('listeners' in config) {
                    ....

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    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


    This issue has already been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi