diff options
author | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:11:18 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2016-11-26 11:11:18 +0100 |
commit | 568cdecd0ba305fe933f10c97c3448d16ef2e4ca (patch) | |
tree | a5ce4e6cb20bced1a5c152eb11814d281b1fb386 /lib/scripts/tree.js | |
parent | 46b9e007ebd787fb7108e55d926ad697e50ca526 (diff) | |
download | dokuwiki-568cdecd0ba305fe933f10c97c3448d16ef2e4ca.tar.gz dokuwiki-568cdecd0ba305fe933f10c97c3448d16ef2e4ca.zip |
replace deprecated delegate() calls
The delegate() call is deprecated in jQuery 3. This replaces it with the
on() call.
Diffstat (limited to 'lib/scripts/tree.js')
-rw-r--r-- | lib/scripts/tree.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/tree.js b/lib/scripts/tree.js index c4e1da3f7..9b2d24556 100644 --- a/lib/scripts/tree.js +++ b/lib/scripts/tree.js @@ -12,7 +12,7 @@ jQuery.fn.dw_tree = function(overrides) { toggle_selector: 'a.idx_dir', init: function () { - this.$obj.delegate(this.toggle_selector, 'click', this, + this.$obj.on('click', this.toggle_selector, this, this.toggle); jQuery('ul:first', this.$obj).attr('role', 'tree'); jQuery('ul', this.$obj).not(':first').attr('role', 'group'); |