Changed all code to strict mode (`'use strict'`)

This commit is contained in:
jos 2016-04-09 20:10:18 +02:00
parent 1d97297486
commit 4950d6fc39
11 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,5 @@
'use strict';
var util = require('./util');
/**

View File

@ -1,3 +1,5 @@
'use strict';
/**
* The highlighter can highlight/unhighlight a node, and
* animate the visibility of a context menu.

View File

@ -1,3 +1,5 @@
'use strict';
var util = require('./util');
/**

View File

@ -1,3 +1,5 @@
'use strict';
var Ajv;
try {
Ajv = require('ajv');

View File

@ -1,3 +1,5 @@
'use strict';
var ContextMenu = require('./ContextMenu');
/**

View File

@ -1,3 +1,5 @@
'use strict';
var naturalSort = require('javascript-natural-sort');
var ContextMenu = require('./ContextMenu');
var appendNodeFactory = require('./appendNodeFactory');

View File

@ -1,3 +1,5 @@
'use strict';
/**
* @constructor SearchBox
* Create a search box in given HTML container

View File

@ -1,3 +1,5 @@
'use strict';
var util = require('./util');
var ContextMenu = require('./ContextMenu');

View File

@ -1,3 +1,5 @@
'use strict';
var ace;
try {
ace = require('./ace');

View File

@ -1,3 +1,6 @@
'use strict';
var Highlighter = require('./Highlighter');
var History = require('./History');
var SearchBox = require('./SearchBox');

View File

@ -1,3 +1,5 @@
'use strict';
var jsonlint = require('./assets/jsonlint/jsonlint');
/**