Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Jan 20, 2023
1 parent b49d19f commit d643ec6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions package.json
Expand Up @@ -30,9 +30,16 @@
"lint": "jshint *.js"
},
"jshintConfig": {
"esversion": 5,
"asi": true,
"evil": true,
"laxcomma": true,
"maxdepth": 6,
"node": true,
"nonbsp": true,
"undef": true,
"unused": true,
"shadow": "outer",
"quotmark": "double"
}
}
7 changes: 3 additions & 4 deletions selector.js
Expand Up @@ -10,13 +10,12 @@


!function(exports) {
var undef
var selectorCache = {
"": function() {}
}
, selectorRe = /([.#:[])([-\w]+)(?:\(((?:[^()]|\([^)]+\))+?)\)|([~^$*|]?)=(("|')(?:\\.|[^\\])*?\6|[-\w]+))?]?/g
, selectorLastRe = /([\s>+~]*)(?:("|')(?:\\.|[^\\])*?\2|\((?:[^()]|\([^()]+\))+?\)|~=|[^'"()\s>+~])+$/
, selectorSplitRe = /\s*,\s*(?=(?:[^'"()]|"(?:\\.|[^\\"])*?"|'(?:\\.|[^\\'])*?'|\((?:[^()]|\([^()]+\))+?\))+$)/
, selectorCache = {
"": function() {}
}
, selectorMap = {
"contains": "_.textContent.indexOf(v)>-1",
"empty": "!_.lastChild",
Expand Down
3 changes: 1 addition & 2 deletions test/selector-spec.js
@@ -1,6 +1,5 @@
describe("Selectors", function() {
var undef
, DOM = require("../")
var DOM = require("../")
, document = DOM.document


Expand Down

0 comments on commit d643ec6

Please sign in to comment.