|
|
|
|
|
by mixu
5274 days ago
|
|
Well, how about this? I'm fairly certain it's ES 3 compatible. https://gist.github.com/1559933 The original was 28 lines, this is 36 (mostly because I like white space). I haven't ever really tried to emulate classes in JS, but this is probably how I would do it. The major difference is that this is written plain old Javascript rather than some special syntax - easier to understand. |
|