Old and busted:
this.MyType = type([MyBase], function () {
this.init = function () {
this.getSuper(MyType).init();
};
});
New hawtness:
exports.MyType = type([MyBase], function (self, supr) {
self.init = function () {
supr.init();
};
});
My coworker, Darren, revealed a bug in the documentation system. The
docs that are generated tonight should be golden again. I'm going to
assume no-one noticed the hiccup, but sorry in any case. A while
back, I changed the comment scraper system to fix the boilerplate
script, which caused the doc scraper to break. They both work now.
With the calls to bind() removed from the type system, performance in
IE is comparable to FF thankfully. We can now use base.js in all
browsers without performance worries. That's a huge relief. base.js
contains all those nice little things you'd expect in a real language,
like the List, Dict, and Set types. Oh, also, a few days ago, I
factored the contents of base.js into separate files to make it easier
to edit. base.js publishes all of these submodules, so there's no
change to code using base.js, but you can take a look at each of the
files in base/* which are all down to a few hundred lines each instead
of one 5600 line file.
Kris