Merge pull request #356 from floriancargoet/fix/plugins

Fix the plugin extend function
This commit is contained in:
JC Brand 2015-04-01 17:20:55 +02:00
commit aa0e6846a1

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;