yanwong / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

setIndex function #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
        function setIndex($index) {
        if ($this->parent) {
            if ($index > $this->index()) {
                --$index;
            }
            $this->parent->deleteChild($this, true);
            $this->parent->addChild($this, $index);
        }
    }

Original issue reported on code.google.com by tha...@songphi.com on 17 May 2013 at 12:08