From a5c89565fe6ceb7ebeef9794afb57415bd9bf099 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 7 Aug 2014 22:53:10 -0400 Subject: [PATCH] `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. --- lib/Trait.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Trait.js b/lib/Trait.js index 0cca02f..b622586 100644 --- a/lib/Trait.js +++ b/lib/Trait.js @@ -176,6 +176,9 @@ Trait.extend = function( dfn ) return ''+name; }; + // we're not a param trait, but we want consistent data + Trait.___$$mixinargs = []; + // invoked to trigger mixin Trait.__mixin = function( dfn, tc, base ) {