Commit aa0e6846 authored by JC Brand's avatar JC Brand

Merge pull request #356 from floriancargoet/fix/plugins

Fix the plugin extend function
parents 46469443 06c3304d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment