From 23f756e95d428cd38789f4140f895cb42459a837 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 2 Mar 2012 18:51:00 -0600 Subject: [PATCH] refactor ender binding --- ext/zest.ender.js | 64 +++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/ext/zest.ender.js b/ext/zest.ender.js index 6275705..42613d7 100644 --- a/ext/zest.ender.js +++ b/ext/zest.ender.js @@ -10,23 +10,20 @@ * https://github.com/ender-js */ -// I try not to change the expected functionality here, however, -// these functions seem like they should belong in a dom library, -// not as part of the selector engine binding. - ;(function() { - var window = this - , document = this.document - , zest = this.zest.noConflict(); + var zest = this.zest.noConflict() + , document = this.document; $._select = function(str, context) { context = context || document; + if (/^\s*