Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/byId' into byId
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Dec 7, 2011
2 parents 46be74e + 69dc510 commit 2db7540
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
21 changes: 0 additions & 21 deletions integration/ender.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion integration/integration.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
</ul>
</div>
</body>
</html>
</html>
15 changes: 10 additions & 5 deletions src/ender.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!function (doc, $) {
var q = require('qwery'), b
var q = require('qwery')

$.pseudos = q.pseudos

Expand All @@ -8,10 +8,15 @@
// rather than load-time since technically it's not a dependency and
// can be loaded in any order
// hence the lazy function re-definition
$._select = !(b = require('bonzo')) ? q : function (s, r) {
return /^\s*</.test(s) ? b.create(s, r) : q(s, r)
}
return b && /^\s*</.test(s) ? b.create(s, r) : q(s, r)
return ($._select = (function(b) {
try {
b = require('bonzo')
return function (s, r) {
return /^\s*</.test(s) ? b.create(s, r) : q(s, r)
}
} catch (e) { }
return q
})())(s, r)
}

$.ender({
Expand Down

0 comments on commit 2db7540

Please sign in to comment.