Guest User

Untitled

a guest
Sep 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. //Static members
  2.  
  3. var Human = Kind.extend({
  4. toString : function() { console.log("hello : ", this); },
  5. initialize : function (name) {
  6. console.log("human constructor");
  7. this.name = name
  8. }
  9. },{ //Static
  10. counter : 0,
  11. getCounter : function() { return this.counter; }
  12. });
Add Comment
Please, Sign In to add comment