Merge pull request #356 from floriancargoet/fix/plugins
Fix the plugin extend function
This commit is contained in:
commit
aa0e6846a1
@ -5587,7 +5587,7 @@
|
|||||||
if (key === 'events') {
|
if (key === 'events') {
|
||||||
obj.prototype[key] = _.extend(value, obj.prototype[key]);
|
obj.prototype[key] = _.extend(value, obj.prototype[key]);
|
||||||
} else {
|
} else {
|
||||||
if (typeof key === 'function') {
|
if (typeof value === 'function') {
|
||||||
obj.prototype._super[key] = obj.prototype[key];
|
obj.prototype._super[key] = obj.prototype[key];
|
||||||
}
|
}
|
||||||
obj.prototype[key] = value;
|
obj.prototype[key] = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user