| @@ 2639-2659 (lines=21) @@ | ||
| 2636 | parentElm.scrollTop = y; |
|
| 2637 | return this; |
|
| 2638 | }, |
|
| 2639 | getRoot: function () { |
|
| 2640 | var ctrl = this, rootControl; |
|
| 2641 | var parents = []; |
|
| 2642 | while (ctrl) { |
|
| 2643 | if (ctrl.rootControl) { |
|
| 2644 | rootControl = ctrl.rootControl; |
|
| 2645 | break; |
|
| 2646 | } |
|
| 2647 | parents.push(ctrl); |
|
| 2648 | rootControl = ctrl; |
|
| 2649 | ctrl = ctrl.parent(); |
|
| 2650 | } |
|
| 2651 | if (!rootControl) { |
|
| 2652 | rootControl = this; |
|
| 2653 | } |
|
| 2654 | var i = parents.length; |
|
| 2655 | while (i--) { |
|
| 2656 | parents[i].rootControl = rootControl; |
|
| 2657 | } |
|
| 2658 | return rootControl; |
|
| 2659 | }, |
|
| 2660 | reflow: function () { |
|
| 2661 | ReflowQueue.remove(this); |
|
| 2662 | var parent$$1 = this.parent(); |
|
| @@ 2130-2150 (lines=21) @@ | ||
| 2127 | parentElm.scrollTop = y; |
|
| 2128 | return this; |
|
| 2129 | }, |
|
| 2130 | getRoot: function () { |
|
| 2131 | var ctrl = this, rootControl; |
|
| 2132 | var parents = []; |
|
| 2133 | while (ctrl) { |
|
| 2134 | if (ctrl.rootControl) { |
|
| 2135 | rootControl = ctrl.rootControl; |
|
| 2136 | break; |
|
| 2137 | } |
|
| 2138 | parents.push(ctrl); |
|
| 2139 | rootControl = ctrl; |
|
| 2140 | ctrl = ctrl.parent(); |
|
| 2141 | } |
|
| 2142 | if (!rootControl) { |
|
| 2143 | rootControl = this; |
|
| 2144 | } |
|
| 2145 | var i = parents.length; |
|
| 2146 | while (i--) { |
|
| 2147 | parents[i].rootControl = rootControl; |
|
| 2148 | } |
|
| 2149 | return rootControl; |
|
| 2150 | }, |
|
| 2151 | reflow: function () { |
|
| 2152 | ReflowQueue.remove(this); |
|
| 2153 | var parent$$1 = this.parent(); |
|