From 1c59018de28902909a957b21847bd5893a8253e7 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Mon, 16 Dec 2013 15:25:17 -0800 Subject: [PATCH] mixin wrapper must not squelch return values --- src/declaration/prototype.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/declaration/prototype.js b/src/declaration/prototype.js index 6840637..e638d1d 100644 --- a/src/declaration/prototype.js +++ b/src/declaration/prototype.js @@ -156,12 +156,13 @@ }, mixinMethod: function(extended, prototype, api, name) { var $super = function(args) { - prototype[name].apply(this, args); + return prototype[name].apply(this, args); }; extended[name] = function() { this.super = $super; - api[name].apply(this, arguments); + var value = api[name].apply(this, arguments); this.super = extended.super; + return value; } }, // ensure prototype[name] inherits from a prototype.prototype[name]