multimethod-js icon indicating copy to clipboard operation
multimethod-js copied to clipboard

default method causes error in IE7

Open boxxxie opened this issue 12 years ago • 2 comments

i'm not sure exactly why, as my college discovered this bug.

boxxxie avatar Apr 25 '12 20:04 boxxxie

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.

hughfdjackson avatar Feb 14 '13 12:02 hughfdjackson

You should be able to use the dynamic syntax:

stopLightColor['default'](function () { return 'unknown'; });

julien-f avatar Jan 14 '14 10:01 julien-f