From 4e3b2b3e94efbc5ff764fc7089dbac18c1468e25 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Thu, 12 Dec 2013 19:50:51 +0000 Subject: [PATCH] jslint /widgets --- .../html/static/notebook/js/widgets/bool.js | 4 +- .../html/static/notebook/js/widgets/button.js | 2 +- .../static/notebook/js/widgets/container.js | 12 ++-- .../notebook/js/widgets/multicontainer.js | 12 ++-- .../static/notebook/js/widgets/selection.js | 69 ++++++++++--------- .../html/static/notebook/js/widgets/string.js | 4 +- 6 files changed, 54 insertions(+), 49 deletions(-) diff --git a/IPython/html/static/notebook/js/widgets/bool.js b/IPython/html/static/notebook/js/widgets/bool.js index 3a3acef7a..54c6c0f72 100644 --- a/IPython/html/static/notebook/js/widgets/bool.js +++ b/IPython/html/static/notebook/js/widgets/bool.js @@ -54,7 +54,7 @@ define(["notebook/js/widget"], function(widget_manager){ this.$checkbox.prop('disabled', disabled); var description = this.model.get('description'); - if (description.length == 0) { + if (description.length === 0) { this.$label.hide(); } else { this.$label.html(description); @@ -98,7 +98,7 @@ define(["notebook/js/widget"], function(widget_manager){ this.$button.prop('disabled', disabled); var description = this.model.get('description'); - if (description.length == 0) { + if (description.length === 0) { this.$button.html(' '); // Preserve button height } else { this.$button.html(description); diff --git a/IPython/html/static/notebook/js/widgets/button.js b/IPython/html/static/notebook/js/widgets/button.js index e8bb0045c..cb3c4ae1d 100644 --- a/IPython/html/static/notebook/js/widgets/button.js +++ b/IPython/html/static/notebook/js/widgets/button.js @@ -36,7 +36,7 @@ define(["notebook/js/widget"], function(widget_manager){ var description = this.model.get('description'); description = description.replace(/ /g, ' ', 'm'); description = description.replace(/\n/g, '
\n', 'm'); - if (description.length == 0) { + if (description.length === 0) { this.$el.html(' '); // Preserve button height } else { this.$el.html(description); diff --git a/IPython/html/static/notebook/js/widgets/container.js b/IPython/html/static/notebook/js/widgets/container.js index 458c7dd7a..de41f37cc 100644 --- a/IPython/html/static/notebook/js/widgets/container.js +++ b/IPython/html/static/notebook/js/widgets/container.js @@ -87,7 +87,7 @@ define(["notebook/js/widget"], function(widget_manager) { .appendTo(this.$window) .mousedown(function(){ that.bring_to_front(); - });; + }); this.$close = $('