Skip to content

Instantly share code, notes, and snippets.

@dperini
Created February 15, 2010 01:23
Show Gist options
  • Save dperini/304367 to your computer and use it in GitHub Desktop.
Save dperini/304367 to your computer and use it in GitHub Desktop.
Prototype._original_property = window.NW;
//= require "repository/src/nwmatcher"
Prototype.Selector = (function(engine) {
function select(selector, scope) {
return engine.select(selector, scope || document, Element.extend);
}
return {
engine: engine,
select: select,
match: engine.match
};
})(NW.Dom);
// Restore globals.
window.NW = Prototype._original_property;
delete Prototype._original_property;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment