From f8b28e9e5ad080729ee4a982929f0114ab319394 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 11 Mar 2011 17:12:52 -0800 Subject: [PATCH] pulling in to avoid namespace pollution --- war/src/main/webapp/scripts/behavior.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/war/src/main/webapp/scripts/behavior.js b/war/src/main/webapp/scripts/behavior.js index 32cbad6e7f..f35b2d6401 100644 --- a/war/src/main/webapp/scripts/behavior.js +++ b/war/src/main/webapp/scripts/behavior.js @@ -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); -- GitLab