提交 f8b28e9e 编写于 作者: K Kohsuke Kawaguchi

pulling in to avoid namespace pollution

上级 2c4d8b4d
......@@ -101,20 +101,20 @@ Behaviour.start();
-- Opera 7 fails
*/
function getAllChildren(e) {
// Returns all children of element. Workaround required for IE5/Windows. Ugh.
return e.all ? e.all : e.getElementsByTagName('*');
}
function findElementsBySelector(startNode,selector) {
function getAllChildren(e) {
// Returns all children of element. Workaround required for IE5/Windows. Ugh.
return e.all ? e.all : e.getElementsByTagName('*');
}
function isAncestor(p,c) {
while(true) {
if(p==c) return true;
if(c==null) return false;
c = c.parentNode;
}
}
function isAncestor(p,c) {
while(true) {
if(p==c) return true;
if(c==null) return false;
c = c.parentNode;
}
}
function findElementsBySelector(startNode,selector) {
// Split selector in to tokens
var tokens = selector.replace(/^\s+/,'').replace(/\s+$/,'').split(' ');
var currentContext = new Array(startNode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册