diff --git a/IPython/html/static/base/js/dialog.js b/IPython/html/static/base/js/dialog.js index 4154b28..835992d 100644 --- a/IPython/html/static/base/js/dialog.js +++ b/IPython/html/static/base/js/dialog.js @@ -12,6 +12,7 @@ IPython.namespace('IPython.dialog'); IPython.dialog = (function (IPython) { + "use strict"; var modal = function (options) { var dialog = $("
").addClass("modal").attr("role", "dialog"); diff --git a/IPython/html/static/base/js/events.js b/IPython/html/static/base/js/events.js index c8271bf..3d7d784 100644 --- a/IPython/html/static/base/js/events.js +++ b/IPython/html/static/base/js/events.js @@ -17,6 +17,7 @@ // $([IPython.events]).on('event.Namespace',function () {}); var IPython = (function (IPython) { + "use strict"; var utils = IPython.utils; diff --git a/IPython/html/static/base/js/namespace.js b/IPython/html/static/base/js/namespace.js index 9c17386..530343c 100644 --- a/IPython/html/static/base/js/namespace.js +++ b/IPython/html/static/base/js/namespace.js @@ -8,6 +8,8 @@ var IPython = IPython || {}; IPython.namespace = function (ns_string) { + "use strict"; + var parts = ns_string.split('.'), parent = IPython, i; diff --git a/IPython/html/static/base/js/page.js b/IPython/html/static/base/js/page.js index 74e89ae..b3dd343 100644 --- a/IPython/html/static/base/js/page.js +++ b/IPython/html/static/base/js/page.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var Page = function () { this.style(); diff --git a/IPython/html/static/base/js/pagemain.js b/IPython/html/static/base/js/pagemain.js index 35c2670..b092a26 100644 --- a/IPython/html/static/base/js/pagemain.js +++ b/IPython/html/static/base/js/pagemain.js @@ -11,6 +11,7 @@ $(document).ready(function () { + "use strict"; IPython.page = new IPython.Page(); IPython.page.show(); diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js index 4ddb56d..068590a 100644 --- a/IPython/html/static/base/js/utils.js +++ b/IPython/html/static/base/js/utils.js @@ -11,6 +11,7 @@ IPython.namespace('IPython.utils'); IPython.utils = (function (IPython) { + "use strict"; //============================================================================ // Cross-browser RegEx Split @@ -366,7 +367,7 @@ IPython.utils = (function (IPython) { }; // http://stackoverflow.com/questions/2400935/browser-detection-in-javascript - browser = (function() { + var browser = (function() { var N= navigator.appName, ua= navigator.userAgent, tem; var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); if (M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index cd1ac7e..1dbbf40 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -16,6 +16,7 @@ */ var IPython = (function (IPython) { + "use strict"; var utils = IPython.utils; diff --git a/IPython/html/static/notebook/js/codemirror-ipython.js b/IPython/html/static/notebook/js/codemirror-ipython.js index 0ceb07f..096ba17 100644 --- a/IPython/html/static/notebook/js/codemirror-ipython.js +++ b/IPython/html/static/notebook/js/codemirror-ipython.js @@ -4,6 +4,7 @@ // to do, but at least the simple one for now. CodeMirror.requireMode('python',function(){ + "use strict"; CodeMirror.defineMode("ipython", function(conf, parserConf) { diff --git a/IPython/html/static/notebook/js/config.js b/IPython/html/static/notebook/js/config.js index 432fb2b..afb0eb7 100644 --- a/IPython/html/static/notebook/js/config.js +++ b/IPython/html/static/notebook/js/config.js @@ -15,6 +15,7 @@ **/ var IPython = (function (IPython) { + "use strict"; /** * A place where some stuff can be confugured. * diff --git a/IPython/html/static/notebook/js/layoutmanager.js b/IPython/html/static/notebook/js/layoutmanager.js index cc4bc2b..dc79b7f 100644 --- a/IPython/html/static/notebook/js/layoutmanager.js +++ b/IPython/html/static/notebook/js/layoutmanager.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var LayoutManager = function () { this.bind_events(); diff --git a/IPython/html/static/notebook/js/maintoolbar.js b/IPython/html/static/notebook/js/maintoolbar.js index 1bf8690..7a66e94 100644 --- a/IPython/html/static/notebook/js/maintoolbar.js +++ b/IPython/html/static/notebook/js/maintoolbar.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var MainToolBar = function (selector) { IPython.ToolBar.apply(this, arguments); diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index 985de1e..f9c0660 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -17,6 +17,7 @@ var IPython = (function (IPython) { + "use strict"; /** * A MenuBar Class to generate the menubar of IPython noteboko diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 8d6ffd1..a2729b1 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var utils = IPython.utils; var key = IPython.utils.keycodes; diff --git a/IPython/html/static/notebook/js/pager.js b/IPython/html/static/notebook/js/pager.js index cc2d80a..697769e 100644 --- a/IPython/html/static/notebook/js/pager.js +++ b/IPython/html/static/notebook/js/pager.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var utils = IPython.utils; diff --git a/IPython/html/static/notebook/js/quickhelp.js b/IPython/html/static/notebook/js/quickhelp.js index e94c944..5b6f170 100644 --- a/IPython/html/static/notebook/js/quickhelp.js +++ b/IPython/html/static/notebook/js/quickhelp.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var QuickHelp = function (selector) { }; diff --git a/IPython/html/static/notebook/js/savewidget.js b/IPython/html/static/notebook/js/savewidget.js index e049a71..8e2a16c 100644 --- a/IPython/html/static/notebook/js/savewidget.js +++ b/IPython/html/static/notebook/js/savewidget.js @@ -10,6 +10,7 @@ //============================================================================ var IPython = (function (IPython) { + "use strict"; var utils = IPython.utils; diff --git a/IPython/html/static/notebook/js/toolbar.js b/IPython/html/static/notebook/js/toolbar.js index 04359c4..f28e2a4 100644 --- a/IPython/html/static/notebook/js/toolbar.js +++ b/IPython/html/static/notebook/js/toolbar.js @@ -15,6 +15,7 @@ */ var IPython = (function (IPython) { + "use strict"; /** * A generic toolbar on which one can add button