dustjs-linkedin
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -192,4 +192,4 @@ // | ||
if (typeof key === "function") { | ||
key = key(chk, ctx).data; | ||
chk.data = ""; | ||
key = key(chk, ctx).data.join(""); | ||
chk.data = []; //ie7 perf | ||
} | ||
@@ -241,3 +241,3 @@ | ||
if (chunk.flushable) { | ||
this.out += chunk.data; | ||
this.out += chunk.data.join(""); //ie7 perf | ||
} else if (chunk.error) { | ||
@@ -265,3 +265,3 @@ this.callback(chunk.error); | ||
if (chunk.flushable) { | ||
this.emit('data', chunk.data); | ||
this.emit('data', chunk.data.join("")); //ie7 perf | ||
} else if (chunk.error) { | ||
@@ -322,3 +322,3 @@ this.emit('error', chunk.error); | ||
this.next = next; | ||
this.data = ''; | ||
this.data = []; //ie7 perf | ||
this.flushable = false; | ||
@@ -334,3 +334,3 @@ this.taps = taps; | ||
} | ||
this.data += data; | ||
this.data.push(data); | ||
return this; | ||
@@ -337,0 +337,0 @@ }; |
@@ -184,4 +184,4 @@ var dust = {}; | ||
if (typeof key === "function") { | ||
key = key(chk, ctx).data; | ||
chk.data = ""; | ||
key = key(chk, ctx).data.join(""); | ||
chk.data = []; //ie7 perf | ||
} | ||
@@ -233,3 +233,3 @@ | ||
if (chunk.flushable) { | ||
this.out += chunk.data; | ||
this.out += chunk.data.join(""); //ie7 perf | ||
} else if (chunk.error) { | ||
@@ -257,3 +257,3 @@ this.callback(chunk.error); | ||
if (chunk.flushable) { | ||
this.emit('data', chunk.data); | ||
this.emit('data', chunk.data.join("")); //ie7 perf | ||
} else if (chunk.error) { | ||
@@ -314,3 +314,3 @@ this.emit('error', chunk.error); | ||
this.next = next; | ||
this.data = ''; | ||
this.data = []; //ie7 perf | ||
this.flushable = false; | ||
@@ -326,3 +326,3 @@ this.taps = taps; | ||
} | ||
this.data += data; | ||
this.data.push(data); | ||
return this; | ||
@@ -329,0 +329,0 @@ }; |
{ | ||
"name": "dustjs-linkedin", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": "Aleksander Williams", | ||
@@ -5,0 +5,0 @@ "description": "Asynchronous templates for the browser and node.js ( LinkedIn fork )", |
@@ -23,7 +23,7 @@ (function(uutest){ | ||
Test.prototype.equals = function(actual, expected, message) { | ||
if (actual !== expected) { | ||
var err = new Error(); | ||
if (message) err.message = message; | ||
throw wrapAssertionError(err, actual, expected, "==="); | ||
} | ||
if (actual !== expected) { | ||
var err = new Error(); | ||
if (message) err.message = message; | ||
throw wrapAssertionError(err, actual, expected, "==="); | ||
} | ||
} | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1352089
76
32302
5
15