From 40944fe3475aece126b981e6c91ad12a24ec4c35 Mon Sep 17 00:00:00 2001 From: dabeng Date: Thu, 5 Jan 2017 21:07:06 +0800 Subject: [PATCH] refactor the eslintrc file --- .eslintrc.json | 2 +- src/orgchart-webcomponents.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9b5ac3e..53a0a49 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -102,7 +102,7 @@ "space-before-blocks": [2, "always"], "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], "space-in-parens": [2, "never"], - "space-infix-ops": 2, + "space-infix-ops": 1, "keyword-spacing": 1, "space-unary-ops": [2, { "words": true, "nonwords": false }], "spaced-comment": [1, "always"], diff --git a/src/orgchart-webcomponents.js b/src/orgchart-webcomponents.js index 2d7abad..29739d6 100644 --- a/src/orgchart-webcomponents.js +++ b/src/orgchart-webcomponents.js @@ -88,9 +88,11 @@ export default class OrgChart extends HTMLElement { }); } } + disconnectedCallback() { } + attributeChangedCallback(attrName, oldVal, newVal) { }