Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chemerisuk committed Jan 16, 2016
1 parent 0d986e3 commit 8a556a5
Show file tree
Hide file tree
Showing 25 changed files with 35 additions and 1,876 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 4.1
- 4.2
before_install:
- npm install -g gulp
- npm install -g bower
Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -10,7 +10,6 @@
},
"docs": "http://chemerisuk.github.io/better-dom",
"devDependencies": {
"benchmark": "1.0.0",
"es6-module-transpiler": "^0.9.5",
"gulp": "^3.8.8",
"gulp-bump": "^0.1.11",
Expand Down Expand Up @@ -46,9 +45,7 @@
"karma-phantomjs-launcher": "^0.2.1",
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.10",
"lodash": "1.2.1",
"phantomjs": "^1.9.18",
"platform": "1.0.0",
"through": "^2.3.6",
"yargs": "^1.3.1"
},
Expand Down
5 changes: 3 additions & 2 deletions src/element/visibility.js
Expand Up @@ -84,6 +84,7 @@ register({
style = node.style,
computed = computeStyle(node),
hiding = condition,
animationHandler, eventType,
done = () => {
if (animationHandler) {
node.removeEventListener(eventType, animationHandler, true);
Expand All @@ -109,8 +110,8 @@ register({
hiding = computed.visibility !== "hidden";
}

var animationHandler = AnimationHandler(node, computed, animationName, hiding, done),
eventType = animationName ? ANIMATION_EVENT_TYPE : TRANSITION_EVENT_TYPE;
animationHandler = AnimationHandler(node, computed, animationName, hiding, done);
eventType = animationName ? ANIMATION_EVENT_TYPE : TRANSITION_EVENT_TYPE;

if (animationHandler) {
node.addEventListener(eventType, animationHandler, true);
Expand Down
6 changes: 3 additions & 3 deletions src/legacy/inputs.js
Expand Up @@ -9,7 +9,8 @@

if (!JSCRIPT_VERSION || JSCRIPT_VERSION > 9) return;

var inputEventHandler = function() {
var capturedNode, capturedNodeValue,
inputEventHandler = function() {
if (capturedNode && capturedNode.value !== capturedNodeValue) {
capturedNodeValue = capturedNode.value;
// trigger custom event that bubbles
Expand All @@ -25,8 +26,7 @@
},
changeEventHandler = function() {
DOM.constructor(capturedNode).fire("change");
},
capturedNode, capturedNodeValue;
};

if (JSCRIPT_VERSION === 9) {
// IE9 doesn't fire oninput when text is deleted, so use
Expand Down
182 changes: 0 additions & 182 deletions test/lib/benchmine/benchmine-env.js

This file was deleted.

0 comments on commit 8a556a5

Please sign in to comment.