<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,17 +1,18 @@
 //= require &quot;repository/legacy&quot;
 
-Prototype.Selector = (function(Legacy) {
+Prototype.Selector = (function(engine) {
   function select(selector, scope) {
-    return Legacy.findChildElements(scope || document, [selector]);
+    return engine.findChildElements(scope || document, [selector]);
   }
   
   function match(element, selector) {
-    return !!Legacy.findElement([element], selector);
+    return !!engine.findElement([element], selector);
   }
   
   return {
-    select: select,
-    match:  match,
-    filter: Legacy.matchElements
+    engine:  engine,
+    select:  select,
+    match:   match,
+    filter:  engine.matchElements
   };
 })(Prototype.Legacy);</diff>
      <filename>vendor/legacy/selector_engine.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,20 +1,15 @@
-Prototype._original_nw = window.NW;
+Prototype._original_property = window.NW;
 //= require &quot;repository/src/nwmatcher&quot;
-Prototype.NW = window.NW;
 
-// Restore globals.
-window.NW = Prototype._original_nw;
-delete Prototype._original_nw;
-
-Prototype.Selector = (function(NWDom) {
+Prototype.Selector = (function(engine) {
   function select(selector, scope) {
-    return NWDom.select(selector, scope || document, null, Element.extend);
+    return engine.select(selector, scope || document, null, Element.extend);
   }
 
   function filter(elements, selector) {
     var results = [], element, i = 0;
     while (element = elements[i++]) {
-      if (NWDom.match(element, selector)) {
+      if (engine.match(element, selector)) {
         Element.extend(element);
         results.push(element);
       }
@@ -23,9 +18,13 @@ Prototype.Selector = (function(NWDom) {
   }
   
   return {
-    select: select,
-    match:  NWDom.match,
-    filter: filter
+    engine:  engine,
+    select:  select,
+    match:   engine.match,
+    filter:  filter
   };
-})(Prototype.NW.Dom);
+})(NW.Dom);
 
+// Restore globals.
+window.NW = Prototype._original_property;
+delete Prototype._original_property;
\ No newline at end of file</diff>
      <filename>vendor/nwmatcher/selector_engine.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,7 @@
-Prototype._original_sizzle = window.Sizzle;
+Prototype._original_property = window.Sizzle;
 //= require &quot;repository/sizzle&quot;
-Prototype.Sizzle = window.Sizzle;
 
-// Restore globals.
-window.Sizzle = Prototype._original_sizzle;
-delete Prototype._original_sizzle;
-
-Prototype.Selector = (function(Sizzle) {
+Prototype.Selector = (function(engine) {
   function extend(elements) {
     for (var i = 0, length = elements.length; i &lt; length; i++)
       elements[i] = Element.extend(elements[i]);
@@ -14,21 +9,25 @@ Prototype.Selector = (function(Sizzle) {
   }
   
   function select(selector, scope) {
-    return extend(Sizzle(selector, scope || document));
+    return extend(engine(selector, scope || document));
   }
 
   function match(element, selector) {
-    return Sizzle.matches(selector, [element]).length == 1;
+    return engine.matches(selector, [element]).length == 1;
   }
 
   function filter(elements, selector) {
-    return extend(Sizzle.matches(selector, elements));
+    return extend(engine.matches(selector, elements));
   }
   
   return {
-    select: select,
-    match:  match,
-    filter: filter
+    engine:  engine,
+    select:  select,
+    match:   match,
+    filter:  filter
   };
-})(Prototype.Sizzle);
+})(Sizzle);
 
+// Restore globals.
+window.Sizzle = Prototype._original_property;
+delete Prototype._original_property;</diff>
      <filename>vendor/sizzle/selector_engine.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5f85799c3fc93d1131da6c71cc26830b18840385</id>
    </parent>
  </parents>
  <author>
    <name>Tobie Langel</name>
    <email>tobie.langel@gmail.com</email>
  </author>
  <url>http://github.com/sstephenson/prototype/commit/83826829a7732c710f47c77ac45d887a72044224</url>
  <id>83826829a7732c710f47c77ac45d887a72044224</id>
  <committed-date>2009-10-24T07:12:38-07:00</committed-date>
  <authored-date>2009-10-24T07:12:38-07:00</authored-date>
  <message>Add Prototype.Selector.engine which simply holds a reference to the actual selector engine used.</message>
  <tree>a0076413dfd70611d37cfe26b21d7650f7600659</tree>
  <committer>
    <name>Tobie Langel</name>
    <email>tobie.langel@gmail.com</email>
  </committer>
</commit>
