File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11# 2.33.1-0 / Unreleased
22 * TODO: tree.hasFocus() more reliable.
3- * [ Added] ` tree.time() ` , ` tree.timeEnd() ` for debugging.
4- * [ Fixed] #974 too much output in prodcution mode.
3+ * [ Added] ` tree.debugTime() ` , ` tree.debugTimeEnd() ` for debugging.
54 * [ Fixed] #973 when use ext-grid in one tree, other tree not use ext-grid has error on click.
5+ * [ Fixed] #974 ext-grid: too much output in production mode.
66
77# 2.33.0 / 2019-10-29
88 * [ Added] event ` preInit ` (fired before nodes are loaded).
99 * [ Changed] jQuery is now a peerDependency (>=1.9), so users can install or re-use their own version.
1010 * [ Changed] ext-grid: ` updateViewport ` event is now also triggered for 'renumber' (i.e. expand, collapse)
1111 * [ Fixed] #963 : tree.setExpanded() fails when autoScroll is enabled
1212 * [ Fixed] #964 : handle case when ` source ` is not passed and no ` <ul> ` is embedded.
13- * [ Fixed] #966 : Ext -dnd5: bug in function onDropEvent (case 'dragover')
13+ * [ Fixed] #966 : ext -dnd5: bug in function onDropEvent (case 'dragover')
1414 * [ Fixed] ext-filter: sub-match counter is one too high.
1515
1616# 2.32.0 / 2019-09-10
Original file line number Diff line number Diff line change 403403 // this.debug("_renumberVisibleNodes() ignored.");
404404 return false ;
405405 }
406- this . time ( "_renumberVisibleNodes()" ) ;
406+ this . debugTime ( "_renumberVisibleNodes()" ) ;
407407 var i = 0 ,
408408 prevLength = this . visibleNodeList ? this . visibleNodeList . length : 0 ,
409409 visibleNodeList = ( this . visibleNodeList = [ ] ) ;
422422 node . _rowIdx = i ++ ;
423423 visibleNodeList . push ( node ) ;
424424 } ) ;
425- this . timeEnd ( "_renumberVisibleNodes()" ) ;
425+ this . debugTimeEnd ( "_renumberVisibleNodes()" ) ;
426426 if ( i !== prevLength ) {
427427 this . _triggerTreeEvent ( "updateViewport" , null , {
428428 reason : "renumber" ,
446446 // tree.debug("no render", tree._enableUpdate);
447447 return ;
448448 }
449- this . time ( "redrawViewport()" ) ;
449+ this . debugTime ( "redrawViewport()" ) ;
450450 this . _renumberVisibleNodes ( force ) ;
451451 // Adjust vp.start value to assure the current content is inside:
452452 this . _fixStart ( null , true ) ;
500500 trIdx ++ ;
501501 }
502502 this . isVpUpdating = prevPhase ;
503- this . timeEnd ( "redrawViewport()" ) ;
503+ this . debugTimeEnd ( "redrawViewport()" ) ;
504504 } ;
505505
506506 $ . ui . fancytree . registerExtension ( {
Original file line number Diff line number Diff line change 37883788 *
37893789 * @param {string } label
37903790 */
3791- time : function ( label ) {
3791+ debugTime : function ( label ) {
37923792 if ( this . options . debugLevel >= 4 ) {
37933793 window . console . time ( this + " - " + label ) ;
37943794 }
37983798 *
37993799 * @param {string } label
38003800 */
3801- timeEnd : function ( label ) {
3801+ debugTimeEnd : function ( label ) {
38023802 if ( this . options . debugLevel >= 4 ) {
38033803 window . console . timeEnd ( this + " - " + label ) ;
38043804 }
You can’t perform that action at this time.
0 commit comments