Skip to content

Commit

Permalink
Update ignores and minified version (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn authored Feb 24, 2018
1 parent d115dde commit 270f45a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.project
.settings
*.iml
node_modules

2 changes: 1 addition & 1 deletion example/html/smarthome-grafana.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions web-src/smarthome-grafana.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var
};

function queryParams(param) {

if (!param) {
return {};
}
Expand Down Expand Up @@ -78,7 +77,6 @@ function resolveParam(params, name) {
}

function SmartHomeSubscriber(params) {

var
p = params,
initialized = false,
Expand All @@ -95,7 +93,7 @@ function SmartHomeSubscriber(params) {
throw new Error("addItemListener 'listener' is not a function");
}
if (items[itemName] !== undefined) {
if( !items[itemName].listeners.includes(listener) ) {
if (!items[itemName].listeners.includes(listener)) {
items[itemName].listeners.push(listener);
}
} else {
Expand Down Expand Up @@ -173,7 +171,6 @@ function SmartHomeSubscriber(params) {
}

function updateItem(itemName, value) {

if (items[itemName].value === value) {
return;
}
Expand Down Expand Up @@ -230,7 +227,6 @@ function SmartHomeSubscriber(params) {
}

function ChangeListenerLongpolling() {

var
_t = this;

Expand Down Expand Up @@ -382,7 +378,6 @@ function SmartHomeSubscriber(params) {
var smartHomeSubscriber = new SmartHomeSubscriber();

function GrafanaPanel(params) {

var
p = params,
refreshTimerId = undefined,
Expand Down
Loading

0 comments on commit 270f45a

Please sign in to comment.