Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 5018580 commit 62121899f60384ff887b1a8fe368af5b84c3b997 @Raynos committed May 1, 2012
Showing with 2 additions and 21 deletions.
  1. +2 −21 README.md
View
@@ -15,13 +15,13 @@ Helping you do prototypical OO
var Cat = extend({}, Animal, {
nyan: function () { ... },
- constructor: function () {
+ initialize: function () {
this.lives = 9
return this;
}
});
- var cat = extend({}, Cat).constructor()
+ var cat = extend({}, Cat).initialize()
## <a href="#mov" nane="mov">Motivation</a>
@@ -38,25 +38,6 @@ pd solves this with utilities and sugar.
## <a name="Documentation" href="#Documentation">Documentation</a>
-### <a name="pd.pd" href="#pd.pd">pd (obj)</a>
-
-pd converts all the values of your objects properties into property descriptors of those values.
-
- pd({
- "foo": "bar"
- })
-
-is the same as
-
- {
- "foo": {
- "value": "bar",
- "enumerable": true,
- "writable": true,
- "configurable": true
- }
- }
-
### <a name="pd.extend" href="#pd.extend">pd.extend (obj..)</a>
pd.extend extends an object with other objects. key clashes are given right preference

0 comments on commit 6212189

Please sign in to comment.