Fix the plugin extend function

This commit is contained in:
Florian Cargoët 2015-04-01 14:59:13 +02:00
parent 4646944327
commit 06c3304d0d

View File

@ -5587,7 +5587,7 @@
if (key === 'events') {
obj.prototype[key] = _.extend(value, obj.prototype[key]);
} else {
if (typeof key === 'function') {
if (typeof value === 'function') {
obj.prototype._super[key] = obj.prototype[key];
}
obj.prototype[key] = value;