File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
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+ * [ Fixed] #973 when use ext-grid in one tree, other tree not use ext-grid has error on click.
34
45# 2.33.0 / 2019-10-29
56 * [ Added] event ` preInit ` (fired before nodes are loaded).
Original file line number Diff line number Diff line change 617617 tree = node . tree ,
618618 topNode = options && options . topNode ,
619619 vp = tree . viewport ,
620- start = vp . start ;
620+ start = vp ? vp . start : null ;
621621
622622 if ( ! tree . viewport ) {
623623 return node . _super . apply ( this , arguments ) ;
Original file line number Diff line number Diff line change 27982798 delete this . _tempCache [ key ] ;
27992799 return null ;
28002800 } ,
2801+ /* Check if this tree has extension `name` enabled.
2802+ *
2803+ * @param {string } name name of the required extension
2804+ */
2805+ _usesExtension : function ( name ) {
2806+ return $ . inArray ( name , this . options . extensions ) >= 0 ;
2807+ } ,
28012808 /* Check if current extensions dependencies are met and throw an error if not.
28022809 *
28032810 * This method may be called inside the `treeInit` hook for custom extensions.
28042811 *
2805- * @param {string } extension name of the required extension
2812+ * @param {string } name name of the required extension
28062813 * @param {boolean } [required=true] pass `false` if the extension is optional, but we want to check for order if it is present
28072814 * @param {boolean } [before] `true` if `name` must be included before this, `false` otherwise (use `null` if order doesn't matter)
28082815 * @param {string } [message] optional error message (defaults to a descriptve error message)
You can’t perform that action at this time.
0 commit comments