1
0
Fork 0

`undefined` is no longer applied to Trait.__mixin

This is a bugfix; the bug was introduced in v0.2.3.

Notably, this caused problems in IE<=8 for non-argument traits. The problem
is that `fund.apply( x, undefined )` is not valid in ES3---we must apply an
empty array (or argument list) instead.
textend
Mike Gerwitz 2014-08-07 22:53:10 -04:00
parent 324ff5ddca
commit a5c89565fe
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@ Trait.extend = function( dfn )
return ''+name; return ''+name;
}; };
// we're not a param trait, but we want consistent data
Trait.___$$mixinargs = [];
// invoked to trigger mixin // invoked to trigger mixin
Trait.__mixin = function( dfn, tc, base ) Trait.__mixin = function( dfn, tc, base )
{ {