Permalink
Browse files

Add 'use strict'; #1

  • Loading branch information...
1 parent 3f83a11 commit 459e4006a7e2ce794b0d7cc161c61fb34e94b956 @popomore popomore committed Mar 7, 2015
View
@@ -1,3 +1,5 @@
+'use strict';
+
var fs = require('fs');
var bench = require('bench');
var oldNunjucks = require('nunjucks');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var lib = require('./lib');
var parser = require('./parser');
var transformer = require('./transformer');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var path = require('path');
var lib = require('./lib');
var Obj = require('./object');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var lib = require('./lib');
var r = require('./runtime');
View
@@ -1,3 +1,4 @@
+'use strict';
function cycler(items) {
var index = -1;
View
@@ -1,3 +1,5 @@
+'use strict';
+
var lib = require('./lib');
var whitespaceChars = ' \n\t\r\u00A0';
@@ -56,7 +58,7 @@ function Tokenizer(str, opts) {
opts = opts || {};
- tags = opts.tags || {};
+ var tags = opts.tags || {};
this.tags = {
BLOCK_START: tags.blockStart || BLOCK_START,
BLOCK_END: tags.blockEnd || BLOCK_END,
View
@@ -1,3 +1,5 @@
+'use strict';
+
var ArrayProto = Array.prototype;
var ObjProto = Object.prototype;
View
@@ -1,3 +1,5 @@
+'use strict';
+
var path = require('path');
var Obj = require('./object');
var lib = require('./lib');
View
@@ -1,3 +1,5 @@
+'use strict';
+
if(typeof window === 'undefined' || window !== this) {
module.exports = require('./node-loaders');
}
View
@@ -1,3 +1,5 @@
+'use strict';
+
var fs = require('fs');
var path = require('path');
var lib = require('./lib');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var util = require('util');
var lib = require('./lib');
var Object = require('./object');
View
@@ -1,3 +1,4 @@
+'use strict';
// A simple class system, more documentation to come
View
@@ -1,3 +1,5 @@
+'use strict';
+
var lexer = require('./lexer');
var nodes = require('./nodes');
var Object = require('./object');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var fs = require('fs');
var path = require('path');
var lib = require('./lib');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var lib = require('./lib');
var Obj = require('./object');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var nodes = require('./nodes');
var lib = require('./lib');
View
@@ -1,3 +1,5 @@
+'use strict';
+
var Loader = require('./loader');
var WebLoader = Loader.extend({
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, Environment, Loader, templatesPath;
var path = require('path');
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, util, Environment, Template, fs;
if(typeof require != 'undefined') {
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, util, lib;
if(typeof require != 'undefined') {
View
@@ -1,5 +1,7 @@
(function() {
- var expect, util, lib;
+ 'use strict';
+
+ var expect, util, lib, Environment, Loader, templatesPath;
if(typeof require != 'undefined') {
expect = require('expect.js');
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, lib, lexer;
if(typeof require != 'undefined') {
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, Environment, Loader, templatesPath;
if(typeof require != 'undefined') {
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, lib, nodes, parser;
if(typeof require != 'undefined') {
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var expect, util;
if(typeof require != 'undefined') {
View
@@ -1,4 +1,6 @@
(function() {
+ 'use strict';
+
var Environment, Template, loader, templatesPath, expect;
if(typeof require != 'undefined') {

0 comments on commit 459e400

Please sign in to comment.