diff --git a/app/view/load-indicator.js b/app/view/load-indicator.js index 81f1a78..2a5bcd7 100644 --- a/app/view/load-indicator.js +++ b/app/view/load-indicator.js @@ -1,6 +1,4 @@ let EventEmitter = require('events').EventEmitter -let $ = require('jquery') -let template = require('./template/load-indicator.handlebars') class LoadIndicator extends EventEmitter { constructor () { @@ -9,18 +7,18 @@ class LoadIndicator extends EventEmitter { } render () { - this.$el = $(template()) - this.el = this.$el.get(0) + this.el = document.createElement('div') + this.el.id = 'cb-loading-overlay' return this } show () { - this.$el.show() + this.el.style.display = 'block' this.emit('show', this) } hide () { - this.$el.hide() + this.el.style.display = 'none' this.emit('hide', this) } } diff --git a/app/view/template/load-indicator.handlebars b/app/view/template/load-indicator.handlebars deleted file mode 100644 index d9b8304..0000000 --- a/app/view/template/load-indicator.handlebars +++ /dev/null @@ -1 +0,0 @@ -
diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 6ad1dc4..5e14287 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1317,11 +1317,6 @@ } } }, - "jquery": { - "version": "2.1.4", - "from": "jquery@>=2.0.0 <3.0.0", - "resolved": "http://registry.npmjs.org/jquery/-/jquery-2.1.4.tgz" - }, "js-tokens": { "version": "1.0.1", "from": "js-tokens@1.0.1", diff --git a/package.json b/package.json index a5e6223..dfdd59a 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,5 @@ "uglify-js": "^2.4.23", "watchify": "http://registry.npmjs.org/watchify/-/watchify-3.2.3.tgz" }, - "dependencies": { - "jquery": "^2.1.4" - } + "dependencies": {} } diff --git a/test/view/load-indicator.test.js b/test/view/load-indicator.test.js index 001c19f..53ee3ce 100644 --- a/test/view/load-indicator.test.js +++ b/test/view/load-indicator.test.js @@ -6,7 +6,7 @@ describe('LoadIndicator', function () { it('should render on init', function () { let indicator = new LoadIndicator() assert.equal(indicator.el.outerHTML - , '') + , '') }) it('should show', function () {