From c809bb8ac4de05ec5ea34b33e720c21fc5875005 Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Tue, 5 Apr 2011 15:10:49 -0700 Subject: [PATCH 1/2] Edited README.md via GitHub --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 413f6ea..1fd8a4c 100644 --- a/README.md +++ b/README.md @@ -35,25 +35,20 @@ Interface new SuperHuman('Zelda').walk()

Object Literals...

-(because sometimes you want to use little curlies ;) +because sometimes you want to use little curlies ;) var Foo = klass({ - foo: 0, - initialize: function() { this.foo = 1; }, - getFoo: function () { return this.foo; }, - setFoo: function (x) { this.foo = x; return this.getFoo(); } - }); *note: initialize will be called on class invocation* From 9fbef6d684867f5c6d0c15abda776e35fdcad4cd Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Tue, 5 Apr 2011 15:11:53 -0700 Subject: [PATCH 2/2] Edited README.md via GitHub --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fd8a4c..d4c2ef6 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Interface new SuperHuman('Zelda').walk()

Object Literals...

+ because sometimes you want to use little curlies ;) var Foo = klass({ @@ -54,7 +55,8 @@ because sometimes you want to use little curlies ;) *note: initialize will be called on class invocation*

Implementing...

-(because sometimes you want to overwrite OR mixin an instance method) + +because sometimes you want to overwrite OR mixin an instance method // note you can optionally pass an object literal to extend too ;) var Alien = SuperHuman.extend({