From 0589eb71f959c92226f31a408aefc1ca4306b54d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 4 Jul 2011 22:55:11 +0200 Subject: deprecated findPosX and findPosY --- lib/scripts/compatibility.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/scripts/compatibility.js') diff --git a/lib/scripts/compatibility.js b/lib/scripts/compatibility.js index 54eb07632..bd5403f0d 100644 --- a/lib/scripts/compatibility.js +++ b/lib/scripts/compatibility.js @@ -12,3 +12,14 @@ var ajax_quicksearch = { clear_results: DEPRECATED_WRAP(dw_qsearch.clear_results, dw_qsearch), onCompletion: DEPRECATED_WRAP(dw_qsearch.onCompletion, dw_qsearch) }; + +function findPosX(object){ + DEPRECATED('Use jQuery.position() instead'); + return jQuery(object).position().left; +} + +function findPosY(object){ + DEPRECATED('Use jQuery.position() instead'); + return jQuery(object).position().top; +} + -- cgit v1.2.3