prototypes
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -95,3 +95,3 @@ 'use strict'; | ||
var value = overwriter[key]; | ||
if (value !== undefined) | ||
if (value !== undefined && value !== null) | ||
{ | ||
@@ -128,3 +128,3 @@ this[key] = value; | ||
first.overwriteWith(third); | ||
testing.assertEquals(first.countProperties(), 5, 'Overwritten with third should have 5 properties', callback); | ||
testing.assertEquals(first.countProperties(), 4, 'Overwritten with third should have 4 properties', callback); | ||
testing.assert(first.w === 0, 'Overwritten with 0 should be there', callback); | ||
@@ -131,0 +131,0 @@ testing.success(callback); |
{ | ||
"name": "prototypes", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Some common prototypes for node.js: string.startsWith(), object.countProperties() and more. Functions are added using Object.defineProperty() to avoid polluting new objects.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/prototypes", |
24215