Comparing version 0.2.0 to 0.2.1
@@ -151,2 +151,3 @@ 'use strict'; | ||
var node = node_; | ||
var length; | ||
@@ -193,9 +194,10 @@ if (node && node.isDOMVComponent) | ||
length = node.length; | ||
// Array.isArray does not accept things like NodeList | ||
if (typeof node.length === 'number') | ||
if (typeof length === 'number') | ||
{ | ||
ret = []; | ||
ret.length = node.length; | ||
ret = new Array(length); | ||
for (i = 0; i < node.length; ++i) | ||
for (i = 0; i < length; ++i) | ||
{ | ||
@@ -363,8 +365,7 @@ switch (arguments.length) | ||
{ | ||
var ret = []; | ||
var length = arr.length; | ||
var ret = new Array(length); | ||
var i, val; | ||
ret.length = arr.length; | ||
for (i = 0; i < arr.length; ++i) | ||
for (i = 0; i < length; ++i) | ||
{ | ||
@@ -371,0 +372,0 @@ val = arr[i]; |
{ | ||
"name": "domv", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Joris van der Wel <joris@jorisvanderwel.com>", | ||
@@ -37,9 +37,9 @@ "description": "Create views as components using DOM. Run the same code on the browser and on the server.", | ||
"inherits": "^2.0.1", | ||
"jsdom": "^1.3.1" | ||
"jsdom": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^6.2.0", | ||
"istanbul": "^0.3.2", | ||
"jsdoc": "^3.3.0-alpha10", | ||
"jshint": "^2.5.8", | ||
"browserify": "^7.0.1", | ||
"istanbul": "^0.3.5", | ||
"jsdoc": "^3.3.0-alpha11", | ||
"jshint": "^2.5.10", | ||
"nodeunit": "^0.9.0" | ||
@@ -46,0 +46,0 @@ }, |
Sorry, the diff of this file is too big to display
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
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
240978
5200
Updatedjsdom@^1.5.0