Permalink
Browse files

Update nodelint@0.5.2, nodeunit@0.6.4.

Nodelint doesn't like for (; ... ; ...) anymore :(
  • Loading branch information...
1 parent 19260f8 commit 648c455e187f090e1953db6c548b739461b99404 @paularmstrong committed Nov 23, 2011
Showing with 9 additions and 9 deletions.
  1. +1 −1 dist/browser.js
  2. +2 −2 lib/filters.js
  3. +4 −4 lib/parser.js
  4. +2 −2 package.json
View
@@ -37,7 +37,7 @@
function fixExec() {
var i = 1;
- for (; i < arguments.length - 2; i += 1) {
+ for (i; i < arguments.length - 2; i += 1) {
if (arguments[i] === undefined) {
match[i] = undefined;
}
View
@@ -48,7 +48,7 @@ exports.date = function (input, format) {
i = 0,
out = '';
- for (; i < l; i += 1) {
+ for (i; i < l; i += 1) {
cur = format.charAt(i);
if (dateformat.hasOwnProperty(cur)) {
out += dateformat[cur](date);
@@ -73,7 +73,7 @@ exports.escape = exports.e = function (input, type) {
input = input.replace(/\\/g, '\\u005C');
- for (; i < input.length; i += 1) {
+ for (i; i < input.length; i += 1) {
code = input.charCodeAt(i);
if (code < 32) {
code = code.toString(16).toUpperCase();
View
@@ -55,7 +55,7 @@ function getTokenArgs(token, parts) {
return out.replace(/^ /, '');
}
- for (; i < l; i += 1) {
+ for (i; i < l; i += 1) {
arg = parts[i];
if (arg === null) {
continue;
@@ -115,7 +115,7 @@ exports.parseVariable = function (token, escape) {
varname = getMethod(varname);
}
- for (; i < l; i += 1) {
+ for (i; i < l; i += 1) {
part = parts[i];
if (part && ((/^[\w\.]+\(/).test(part) || (/\)$/).test(part)) && !(/^[\w\.]+\([^\)]*\)$/).test(part)) {
parts[i] += '|' + parts[i + 1];
@@ -126,7 +126,7 @@ exports.parseVariable = function (token, escape) {
i = 0;
l = parts.length;
- for (; i < l; i += 1) {
+ for (i; i < l; i += 1) {
part = parts[i];
filter_name = getMethod(part);
if ((/\(/).test(part)) {
@@ -170,7 +170,7 @@ exports.parse = function (data, tags, autoescape) {
newlines = null,
lastToken;
- for (; i < j; i += 1) {
+ for (i; i < j; i += 1) {
token = rawtokens[i];
curline = lines;
newlines = token.match(/\n/g);
View
@@ -16,8 +16,8 @@
},
"devDependencies": {
"express": ">=2.5.0",
- "nodelint": ">=0.5.1",
- "nodeunit": ">=0.5.5",
+ "nodelint": ">=0.5.2",
+ "nodeunit": ">=0.6.4",
"uglify-js": ">=1.1.0"
},
"main": "index",

0 comments on commit 648c455

Please sign in to comment.