Results 1 to 2 of 2

Thread: passing node array to NodeInterface.insertBefore()

    You found a bug! We've classified it as EXTJS-18561 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Apr 2015

    Default passing node array to NodeInterface.insertBefore()

    Ext version tested:
    • ExtJS 5.1.1 and ExtJS 6.0.0

    Browser versions tested against:
    • Firefox 38.0.5
    • Chromium 42.0.2309.0

    • When passing an array as first parameter of insertBefore() to insert more than one one before another, an empty node is inserted instead of the passed nodes. The documentation states that passing an array is possible, but the code creates a node out of the first parameter anyway as it seems. It would be useful to be actually able to pass an array of nodes when moving nodes programmatically.

    Steps to reproduce the problem:
    • call insertBefore([<someNode>,<someOtherNode>], <referenceNode>)

    The result that was expected:
    • The passed nodes are inserted before the reference node. If they already exist in the tree, they are removed from their old position. (Compare to behavior of appendChild() in the same situation.)

    The result that occurs instead:
    • An empty node was inserted before the reference node. The passed nodes stay on their old position.


  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Central Ohio


    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 0
    Last Post: 19 Mar 2014, 3:33 AM
  2. Replies: 0
    Last Post: 23 Aug 2013, 4:43 AM
  3. Replies: 2
    Last Post: 1 May 2013, 4:49 AM
  4. Replies: 1
    Last Post: 2 Jan 2012, 6:45 AM
  5. Array insertAt, insertBefore, insertAfter
    By mabello in forum Ext 2.x: User Extensions and Plugins
    Replies: 3
    Last Post: 19 Aug 2008, 8:15 AM

Posting Permissions

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