lhorie/mithril.js — pull request #251 by zzmp (2014-09-17 19:22:03+00:00)
Title: Refactor type fn for readability/brevity

This replaces the helper function `var type = {}.toString` with `var type = function(obj) {return {}.toString.call(obj)}`.
This allows it to be called more ergonomically.

It replaces invocations (previously, `type.call(obj)`) with `type(obj)`.

Incidentally, it reduces mithril.js by 7 bytes

---

All tests still pass, as run with `grunt`'s default.