Created
February 15, 2010 01:23
-
-
Save dperini/304367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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