Skip to content

TagSpaces is an offline, open source, document manager with tagging support

jshinting

Ilian47f102eb4a1a
diff --git a/data/ext/perspectiveList/extension.js b/data/ext/perspectiveList/extension.js
index a642f87fd..148bbcf05 100644
--- a/data/ext/perspectiveList/extension.js
+++ b/data/ext/perspectiveList/extension.js
@@ -1,6 +1,7 @@
/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.
* Use of this source code is governed by a AGPL3 license that
* can be found in the LICENSE file. */
+/* global define, Handlebars */
define(function(require, exports, module) {
"use strict";
@@ -18,14 +19,14 @@ define(function(require, exports, module) {
var TSCORE = require("tscore");
var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;
- var UI = undefined;
+ var UI;
function init() {
console.log("Initializing perspective "+extensionID);
require([
extensionDirectory+'/perspectiveUI.js',
"text!"+extensionDirectory+'/toolbar.html',
- extensionDirectory+'/datatables/jquery.dataTables.min.js',
+ extensionDirectory+'/datatables/jquery.dataTables.min.js'
], function(extUI, toolbarTPL) {
var toolbarTemplate = Handlebars.compile( toolbarTPL );
UI = new extUI.ExtUI(extensionID);
@@ -33,23 +34,23 @@ define(function(require, exports, module) {
platformTuning();
}
);
- };
+ }
var platformTuning = function() {};
var load = function () {
console.log("Loading perspective "+extensionID);
- if(UI == undefined) {
- window.setTimeout(function() { UI.reInit() }, 1000)
+ if(UI === undefined) {
+ window.setTimeout(function() { UI.reInit(); }, 1000);
} else {
UI.reInit();
}
};
var clearSelectedFiles = function() {
- if(UI != undefined) {
- UI.clearSelectedFiles();
- }
+ if(UI !== undefined) {
+ UI.clearSelectedFiles();
+ }
};
var removeFileUI = function(filePath) {