diff options
Diffstat (limited to 'lib/scripts/compatibility.js')
-rw-r--r-- | lib/scripts/compatibility.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js index 559cc359a..54eb07632 100644 --- a/lib/scripts/compatibility.js +++ b/lib/scripts/compatibility.js @@ -1,16 +1,14 @@ /*jslint sloppy: true */ -/*global dw_index, DEPRECATED */ +/*global dw_index, dw_qsearch, DEPRECATED_WRAP */ var index = { throbber_delay: dw_index.throbber_delay, + toggle: DEPRECATED_WRAP(dw_index.toggle, dw_index), + treeattach: DEPRECATED_WRAP(dw_index.treeattach, dw_index) +}; - toggle: function () { - DEPRECATED(); - dw_index.toggle.apply(dw_index, arguments); - }, - - treeattach: function () { - DEPRECATED(); - dw_index.treeattach.apply(dw_index, arguments); - } +var ajax_quicksearch = { + init: DEPRECATED_WRAP(dw_qsearch.init, dw_qsearch), + clear_results: DEPRECATED_WRAP(dw_qsearch.clear_results, dw_qsearch), + onCompletion: DEPRECATED_WRAP(dw_qsearch.onCompletion, dw_qsearch) }; |