Skip to content

Commit 422a86f

Browse files
committed
Bump 3.0.1
1 parent 2a94e14 commit 422a86f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 3.0.1
2+
3+
- Support clonning Classes
4+
15
### 3.0.0
26

37
- Clone the object received on `set` (immutable)

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
// Handle Object
8080
if (obj instanceof Object) {
81-
copy = {};
81+
copy = Object.create(Object.getPrototypeOf(obj));
8282
for (var attr in obj) {
8383
if (obj.hasOwnProperty(attr)) copy[attr] = clone(obj[attr]);
8484
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "duix",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"author": {
55
"name": "Broda Noel",
66
"email": "[email protected]"

0 commit comments

Comments
 (0)