Skip to content

Commit

Permalink
Add item to the TODO list
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 7, 2015
1 parent 1f944d9 commit 2f758b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,15 @@ Extra.prototype.isPrototypeOf(instance); // true :D
Foo.prototype.isPrototypeOf(instance); // false :(
Bar.prototype.isPrototypeOf(instance); // false :(
```
* Clone inner objects:
```js
var someBase = {
outer: {
inner: 1
}
}
var Extra = Base.extend(Foo, Bar, someBase);
var e = new Extra();
e.outer.inner = 3;
someBase.outer.inner === 1; // should be true
```

0 comments on commit 2f758b2

Please sign in to comment.