Fix a global leak #10

Merged
merged 1 commit into from Mar 27, 2012
Jump to file
+2 −2
Split
View
@@ -10,11 +10,11 @@ var libxmljs = require('libxmljs');
var merge = function (obj1, obj2) {
var obj3 = {};
- for (attrname in obj1) {
+ for (var attrname in obj1) {
obj3[attrname] = obj1[attrname];
}
- for (attrname in obj2) {
+ for (var attrname in obj2) {
obj3[attrname] = obj2[attrname];
}