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

      0  

    Default Bug in Ext.dom.Element.syncContent

    Bug in Ext.dom.Element.syncContent


    REQUIRED INFORMATION




    Ext version tested:
    • Ext 4.1.1
    Description:
    This:
    Code:
    if (sourceLen !== destLen) {
        source.innerHTML = dest.innerHTML;
        return;
    }
    Should be:

    Code:
    if (sourceLen !== destLen) {
        dest.innerHTML = source.innerHTML;
        return;
    }


    Steps to reproduce the problem:
    • syncContent a container with many nodes
    The result that was expected:
    • dest = source
    The result that occurs instead:
    • source = dest
    Workaround:

    Override syncContent, but it is created using addMethods so we need to do a bit of a hack. Any better ways to do this?

    Code:
    Ext.require('Ext.dom.Element', function() {
        Ext.dom.Element.override({
            syncContent: function(source){...}
        });
    });
    Last edited by Ilianh; 27 Oct 2012 at 8:16 AM. Reason: Misplaced bracket

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Yes, this blunder was fixed in 4.1.2!

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    6
    Vote Rating
    0
    Ilianh is on a distinguished road

      0  

    Default


    Amazing, thank you.

Thread Participants: 1