From 56a57de8e1294a64bb6b6c277446478017280ce6 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Sun, 12 Aug 2012 14:00:38 +0200 Subject: [PATCH] jslint 2 --- .../html/notebook/static/js/notificationwidget.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/notificationwidget.js b/IPython/frontend/html/notebook/static/js/notificationwidget.js index 570080955..892cedcb9 100644 --- a/IPython/frontend/html/notebook/static/js/notificationwidget.js +++ b/IPython/frontend/html/notebook/static/js/notificationwidget.js @@ -41,27 +41,27 @@ var IPython = (function (IPython) { // click_callback : function called if user click on notification // could return false to prevent the notification to be dismissed NotificationWidget.prototype.set_message = function (msg, timeout, click_callback) { - var callback = click_callback || function(){return false}; + var callback = click_callback || function() {return false;}; var that = this; this.element.html(msg); this.element.fadeIn(100); if (this.timeout !== null) { clearTimeout(this.timeout); this.timeout = null; - }; + } if (timeout !== undefined && timeout >=0) { this.timeout = setTimeout(function () { that.element.fadeOut(100, function () {that.element.html('');}); that.timeout = null; }, timeout); } else { - this.element.click(function(){ - if( callback() != false){ + this.element.click(function() { + if( callback() != false ) { that.element.fadeOut(100, function () {that.element.html('');}); - that.element.unbind('click') + that.element.unbind('click'); } if (that.timeout !== undefined) { - that.timeout = undefined + that.timeout = undefined; clearTimeout(that.timeout); } });