`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
parent
324ff5ddca
commit
a5c89565fe
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue