prepare for nearest implementation

This commit is contained in:
Dennis Eichhorn 2019-05-18 17:59:18 +02:00
parent 5c04a6ec4c
commit 8d0f7343dc
2 changed files with 11 additions and 0 deletions

View File

@ -220,4 +220,9 @@
e[i].addEventListener(event, callback);
}
};
jsOMS.nearest = function (e, selector)
{
};
}(window.jsOMS = window.jsOMS || {}));

View File

@ -489,4 +489,10 @@
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
};
jsOMS.nearest = function (e, selector) {
// same level first
// parent level second
// child level third
};
}(window.jsOMS = window.jsOMS || {}));