Clean-up.

This commit is contained in:
Tobie Langel 2009-10-23 04:10:30 +02:00
parent 2d13d45dc8
commit da3e1e361e
2 changed files with 17 additions and 10 deletions

View File

@ -89,3 +89,13 @@
}
});
})();
/** related to: Selector
* $$(expression...) -> [Element...]
*
* Returns all elements in the document that match the provided CSS selectors.
**/
window.$$ = function() {
var expression = $A(arguments).join(', ');
return Prototype.Selector.select(expression, document);
};

View File

@ -1,4 +1,10 @@
Prototype._original_sizzle = window.Sizzle;
//= require <sizzle>
Prototype.Sizzle = window.Sizzle;
// Restore globals.
window.Sizzle = Prototype._original_sizzle;
delete Prototype._original_sizzle;
Prototype.Selector = (function(Sizzle) {
function extend(elements) {
@ -24,14 +30,5 @@ Prototype.Selector = (function(Sizzle) {
match: match,
filter: filter
};
})(Sizzle);
})(Prototype.Sizzle);
/** related to: Selector
* $$(expression...) -> [Element...]
*
* Returns all elements in the document that match the provided CSS selectors.
**/
window.$$ = function() {
var expression = $A(arguments).join(', ');
return Prototype.Selector.select(expression, document);
};