Browse Subversion Repository
Diff of /js/common.js
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
|