##// END OF EJS Templates
Merge pull request #3969 from Carreau/usestrict...
Matthias Bussonnier -
r12232:d5724045 merge
parent child Browse files
Show More
@@ -12,6 +12,7 b''
12 IPython.namespace('IPython.dialog');
12 IPython.namespace('IPython.dialog');
13
13
14 IPython.dialog = (function (IPython) {
14 IPython.dialog = (function (IPython) {
15 "use strict";
15
16
16 var modal = function (options) {
17 var modal = function (options) {
17 var dialog = $("<div/>").addClass("modal").attr("role", "dialog");
18 var dialog = $("<div/>").addClass("modal").attr("role", "dialog");
@@ -17,6 +17,7 b''
17 // $([IPython.events]).on('event.Namespace',function () {});
17 // $([IPython.events]).on('event.Namespace',function () {});
18
18
19 var IPython = (function (IPython) {
19 var IPython = (function (IPython) {
20 "use strict";
20
21
21 var utils = IPython.utils;
22 var utils = IPython.utils;
22
23
@@ -8,6 +8,8 b''
8 var IPython = IPython || {};
8 var IPython = IPython || {};
9
9
10 IPython.namespace = function (ns_string) {
10 IPython.namespace = function (ns_string) {
11 "use strict";
12
11 var parts = ns_string.split('.'),
13 var parts = ns_string.split('.'),
12 parent = IPython,
14 parent = IPython,
13 i;
15 i;
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var Page = function () {
15 var Page = function () {
15 this.style();
16 this.style();
@@ -11,6 +11,7 b''
11
11
12
12
13 $(document).ready(function () {
13 $(document).ready(function () {
14 "use strict";
14
15
15 IPython.page = new IPython.Page();
16 IPython.page = new IPython.Page();
16 IPython.page.show();
17 IPython.page.show();
@@ -11,6 +11,7 b''
11 IPython.namespace('IPython.utils');
11 IPython.namespace('IPython.utils');
12
12
13 IPython.utils = (function (IPython) {
13 IPython.utils = (function (IPython) {
14 "use strict";
14
15
15 //============================================================================
16 //============================================================================
16 // Cross-browser RegEx Split
17 // Cross-browser RegEx Split
@@ -366,7 +367,7 b' IPython.utils = (function (IPython) {'
366 };
367 };
367
368
368 // http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
369 // http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
369 browser = (function() {
370 var browser = (function() {
370 var N= navigator.appName, ua= navigator.userAgent, tem;
371 var N= navigator.appName, ua= navigator.userAgent, tem;
371 var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
372 var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
372 if (M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
373 if (M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
@@ -16,6 +16,7 b''
16 */
16 */
17
17
18 var IPython = (function (IPython) {
18 var IPython = (function (IPython) {
19 "use strict";
19
20
20 var utils = IPython.utils;
21 var utils = IPython.utils;
21
22
@@ -4,6 +4,7 b''
4 // to do, but at least the simple one for now.
4 // to do, but at least the simple one for now.
5
5
6 CodeMirror.requireMode('python',function(){
6 CodeMirror.requireMode('python',function(){
7 "use strict";
7
8
8 CodeMirror.defineMode("ipython", function(conf, parserConf) {
9 CodeMirror.defineMode("ipython", function(conf, parserConf) {
9
10
@@ -15,6 +15,7 b''
15 **/
15 **/
16
16
17 var IPython = (function (IPython) {
17 var IPython = (function (IPython) {
18 "use strict";
18 /**
19 /**
19 * A place where some stuff can be confugured.
20 * A place where some stuff can be confugured.
20 *
21 *
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var LayoutManager = function () {
15 var LayoutManager = function () {
15 this.bind_events();
16 this.bind_events();
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var MainToolBar = function (selector) {
15 var MainToolBar = function (selector) {
15 IPython.ToolBar.apply(this, arguments);
16 IPython.ToolBar.apply(this, arguments);
@@ -17,6 +17,7 b''
17
17
18
18
19 var IPython = (function (IPython) {
19 var IPython = (function (IPython) {
20 "use strict";
20
21
21 /**
22 /**
22 * A MenuBar Class to generate the menubar of IPython noteboko
23 * A MenuBar Class to generate the menubar of IPython noteboko
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var utils = IPython.utils;
15 var utils = IPython.utils;
15 var key = IPython.utils.keycodes;
16 var key = IPython.utils.keycodes;
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var utils = IPython.utils;
15 var utils = IPython.utils;
15
16
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var QuickHelp = function (selector) {
15 var QuickHelp = function (selector) {
15 };
16 };
@@ -10,6 +10,7 b''
10 //============================================================================
10 //============================================================================
11
11
12 var IPython = (function (IPython) {
12 var IPython = (function (IPython) {
13 "use strict";
13
14
14 var utils = IPython.utils;
15 var utils = IPython.utils;
15
16
@@ -15,6 +15,7 b''
15 */
15 */
16
16
17 var IPython = (function (IPython) {
17 var IPython = (function (IPython) {
18 "use strict";
18
19
19 /**
20 /**
20 * A generic toolbar on which one can add button
21 * A generic toolbar on which one can add button
General Comments 0
You need to be logged in to leave comments. Login now