Permalink
Browse files

Merge branch 'master' of github.com:ded/klass

  • Loading branch information...
2 parents 98da560 + 9fbef6d commit 005c836765729673e1d63775be75213baa2f29bd @fat fat committed Apr 6, 2011
Showing with 4 additions and 7 deletions.
  1. +4 −7 README.md
View
@@ -35,31 +35,28 @@ Interface
new SuperHuman('Zelda').walk()
<h3>Object Literals...</h3>
-(because sometimes you want to use little curlies ;)
- var Foo = klass({
+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*
<h3>Implementing...</h3>
-(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({

0 comments on commit 005c836

Please sign in to comment.