ded / klass

a utility for creating expressive classes in JavaScript
753 stars 78 forks source link

how to access "statics" ? #15

Closed ghost closed 11 years ago

ghost commented 11 years ago

I'm missing something about access "statics" parameteres.

ded commented 11 years ago
var Person = klass(function (name) {
  this.name = name
})
  .statics({
    head: ':)',
    feet: '_|_'
  })

// Person.head