This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 122122 }
123123 // don't need to update if the size is already set and it's opened
124124 if ( ! this . fixedSize || ! this . closed ) {
125- this . asyncUpdate ( ) ;
125+ this . update ( ) ;
126126 }
127127 } ,
128128 addListeners : function ( node ) {
139139 this . dimension = this . horizontal ? 'width' : 'height' ;
140140 } ,
141141 closedChanged : function ( ) {
142- this . asyncUpdate ( ) ;
142+ this . update ( ) ;
143143 } ,
144144 /**
145145 * Toggle the closed state of the collapsible.
154154 s . webkitTransition = s . transition = duration ?
155155 ( this . dimension + ' ' + duration + 's' ) : null ;
156156 if ( duration === 0 ) {
157- this . asyncMethod ( 'transitionEnd' ) ;
157+ this . async ( 'transitionEnd' ) ;
158158 }
159159 } ,
160160 transitionEnd : function ( ) {
178178 this . transitionEnd ( ) ;
179179 }
180180 } ,
181- asyncUpdate : function ( ) {
182- this . updateJob = this . job ( this . updateJob , this . update , 0 ) ;
183- } ,
184181 update : function ( ) {
185182 if ( ! this . target || ! this . inDocument ) {
186183 return ;
205202 var s = this . calcSize ( ) ;
206203 this . updateSize ( 0 , null ) ;
207204 }
208- this . asyncMethod ( function ( ) {
205+ this . async ( function ( ) {
209206 this . updateSize ( this . size || s , this . duration , true ) ;
210207 } , null , 1 ) ;
211208 } ,
221218 } else {
222219 this . updateSize ( this . calcSize ( ) , null ) ;
223220 }
224- this . asyncMethod ( function ( ) {
221+ this . async ( function ( ) {
225222 this . updateSize ( 0 , this . duration ) ;
226223 } , null , 1 ) ;
227224 }
Original file line number Diff line number Diff line change 100100 if ( ! this . isContainer ) {
101101 this . style . display = 'none' ;
102102 }
103- this . asyncMethod ( function ( ) {
103+ this . async ( function ( ) {
104104 this . layoutContainer && this . layoutContainer . classList . add ( 'flexbox' ) ;
105105 this . verticalChanged ( ) ;
106106 this . alignChanged ( ) ;
Original file line number Diff line number Diff line change 6565 useRaw : false ,
6666 enteredDocument : function ( ) {
6767 // wait for bindings are all setup
68- this . asyncMethod ( 'load' ) ;
68+ this . async ( 'load' ) ;
6969 } ,
7070 valueChanged : function ( ) {
7171 if ( this . loaded ) {
You can’t perform that action at this time.
0 commit comments