Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change config keys to camelCase

  • Loading branch information...
commit 9e021660a563abee525949917fc78afef9c7a992 1 parent 59ebaf0
@rvagg rvagg authored
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/qwery.js
  2. +2 −2 tests/tests.js
View
10 src/qwery.js
@@ -47,7 +47,7 @@
return (p1 = previous(node)) && (p2 = previous(contestant)) && p1 == p2 && p1
}
}
- , NATIVE_QSA = 'NATIVE_QSA'
+ , useNativeQSA = 'useNativeQSA'
, select // main select() method, assign later
function cache() {
@@ -374,16 +374,16 @@
return ss.length > 1 && result.length > 1 ? uniq(result) : result
}
, configure = function (options) {
- // NATIVE_QSA: use fully-internal selector or native qSA where present
- if (typeof options[NATIVE_QSA] !== 'undefined') {
- select = !options[NATIVE_QSA] ?
+ // configNativeQSA: use fully-internal selector or native qSA where present
+ if (typeof options[useNativeQSA] !== 'undefined') {
+ select = !options[useNativeQSA] ?
selectNonNative : supportsCSS3 ?
selectCSS3 : doc[qSA] ? // IE8 has CSS2 qSA, use it if we can
selectCSS2qSA : selectNonNative
}
}
- configure({ NATIVE_QSA: true })
+ configure({ useNativeQSA: true })
qwery.configure = configure
qwery.uniq = uniq
View
4 tests/tests.js
@@ -3,11 +3,11 @@ Q.pseudos.humanoid = function(e, v) { return Q.is(e, 'li:contains(human)') || Q.
var hasQSA = !!document.querySelectorAll
, sinkSuite = function (label, suite) {
sink(label + (hasQSA ? ' [qSA]' : ''), function () {
- hasQSA && Q.configure({ 'NATIVE_QSA': true })
+ hasQSA && Q.configure({ useNativeQSA: true })
suite.apply(null, arguments)
})
hasQSA && sink(label + ' [non-QSA]', function () {
- Q.configure({ 'NATIVE_QSA': false })
+ Q.configure({ useNativeQSA: false })
suite.apply(null, arguments)
})
}
Please sign in to comment.
Something went wrong with that request. Please try again.