We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a94e14 commit 422a86fCopy full SHA for 422a86f
CHANGELOG.md
@@ -1,3 +1,7 @@
1
+### 3.0.1
2
+
3
+- Support clonning Classes
4
5
### 3.0.0
6
7
- Clone the object received on `set` (immutable)
build.js
@@ -78,7 +78,7 @@
78
79
// Handle Object
80
if (obj instanceof Object) {
81
- copy = {};
+ copy = Object.create(Object.getPrototypeOf(obj));
82
for (var attr in obj) {
83
if (obj.hasOwnProperty(attr)) copy[attr] = clone(obj[attr]);
84
}
package.json
@@ -1,6 +1,6 @@
{
"name": "duix",
- "version": "3.0.0",
+ "version": "3.0.1",
"author": {
"name": "Broda Noel",
"email": "[email protected]"
0 commit comments