Develop and Download Open Source Software

Browse Subversion Repository

Diff of /js/common.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 37 by berupon, Tue Jan 19 14:52:25 2010 UTC revision 39 by berupon, Wed Jan 20 06:35:24 2010 UTC
# Line 653  function createNodeWithScript(html) { Line 653  function createNodeWithScript(html) {
653          return div;          return div;
654  }  }
655    
656  function getElementsByCSSSelector(root, expr) {  function getElementsByCssSelector(root, expr) {
657          return (new Selector(expr)).findElements(root);          return (new Selector(expr)).findElements(root);
658  }  }
659    
660    function getParentElementByCssSelector(elem, expr) {
661            var s = new Selector(expr);
662            while (elem = elem.parentNode) {
663                    if (s.match(elem)) {
664                            return elem;
665                    }
666            }
667            return null;
668    }
669    
670    
671  // http://phpjs.org/functions/compact:371  // http://phpjs.org/functions/compact:371
672  function compact ( ) {  function compact ( ) {

Legend:
Removed from v.37  
changed lines
  Added in v.39

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26