TagSpaces is an offline, open source, document manager with tagging support
jshiniting
Ilian6aa4b09ff8a3
diff --git a/data/ext/perspectiveGrid/extension.js b/data/ext/perspectiveGrid/extension.jsindex 711a1cfd0..888e47407 100644--- a/data/ext/perspectiveGrid/extension.js+++ b/data/ext/perspectiveGrid/extension.js@@ -1,7 +1,7 @@-/* Copyright (c) 2013 The Tagspaces Authors. All rights reserved.+/* Copyright (c) 2013-2014 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, isCordova */define(function(require, exports, module) {"use strict";@@ -18,13 +18,13 @@ define(function(require, exports, module) {var TSCORE = require("tscore");var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;- var UI = undefined;+ var UI;var init = function () {console.log("Initializing perspective "+extensionID);require([extensionDirectory+'/perspectiveUI.js',- "text!"+extensionDirectory+'/toolbar.html',+ "text!"+extensionDirectory+'/toolbar.html'], function(extUI, toolbarTPL) {var toolbarTemplate = Handlebars.compile( toolbarTPL );UI = new extUI.ExtUI(extensionID);@@ -42,17 +42,17 @@ define(function(require, exports, module) {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) {