Skip to content
Snippets Groups Projects
Commit cc564ecd authored by Schplurtz le Déboulonné's avatar Schplurtz le Déboulonné Committed by Andreas Gohr
Browse files

compat js findPosX/y more closely mimic historical function

parent 3161005d
No related branches found
No related tags found
No related merge requests found
......@@ -165,13 +165,13 @@ toggleWrap = DEPRECATED_WRAP(dw_editor.toggleWrap);
setWrap = DEPRECATED_WRAP(dw_editor.setWrap);
function findPosX(object){
DEPRECATED('Use jQuery.position() instead');
return jQuery(object).position().left;
DEPRECATED('Use jQuery.offset() instead');
return jQuery(object).offset().left;
}
function findPosY(object){
DEPRECATED('Use jQuery.position() instead');
return jQuery(object).position().top;
DEPRECATED('Use jQuery.offset() instead');
return jQuery(object).offset().top;
}
function getElementsByClass(searchClass,node,tag){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment