multimethod-js
multimethod-js copied to clipboard
default method causes error in IE7
i'm not sure exactly why, as my college discovered this bug.
I assume that this is because it's a reserved word; not valid as an identifierName (i.e. the name of a property) until es5: http://es5.github.com/#x7.6.1.
You should be able to use the dynamic syntax:
stopLightColor['default'](function () { return 'unknown'; });