1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-17 08:05:44 +01:00

Added clean task for starter page and removed unused dom.position helper

This commit is contained in:
Max Guglielmi 2015-07-14 22:36:24 +10:00
commit 9936a1fde4
8 changed files with 68 additions and 594 deletions

View file

@ -51,22 +51,6 @@ export default {
return document.createTextNode(txt);
},
/**
* Returns offset position of passed element
* @param {object} obj [description]
* @return {object} literal object with left and top values
*/
position(obj){
let l = 0, t = 0;
if (obj && obj.offsetParent){
do {
l += obj.offsetLeft;
t += obj.offsetTop;
} while (obj == obj.offsetParent);
}
return { 'left': l, 'top': t };
},
hasClass(ele, cls){
if(!ele){ return false; }