UNPKG

panino

Version:

API documentation generator with a strict grammar and testing tools

25 lines (18 loc) 597 B
//= compat //= require "sizzle" Prototype._original_property = window.Sizzle; ;(function(engine) { var extendElements = Prototype.Selector.extendElements; function select(selector, scope) { return extendElements(engine(selector, scope || document)); } function match(element, selector) { return engine.matches(selector, [element]).length == 1; } Prototype.Selector.engine = engine; Prototype.Selector.select = select; Prototype.Selector.match = match; })(Sizzle); // Restore globals. window.Sizzle = Prototype._original_property; delete Prototype._original_property;