Skip to content

Commit

Permalink
Edit Etity.js functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zerokilobytes committed Jul 5, 2011
1 parent f61c8be commit dd4eb33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions Entity.js
Expand Up @@ -19,10 +19,6 @@

init : function () {
},

base: function(){
return this;
}
}
}

Expand Down
5 changes: 1 addition & 4 deletions test.html
Expand Up @@ -48,14 +48,11 @@
person.play();
person.doSomething();



Programmer = $e({
cname: 'Programmer',
extend: Person,
init : function (first_name, last_name) {
this.first_name = first_name;
this.last_name = last_name;
this.$super.init.apply(this, arguments);
},
play : function () {
console.log(this.first_name + ' played from Class Programmer');
Expand Down

0 comments on commit dd4eb33

Please sign in to comment.