Commit 06c3304d authored by Florian Cargoët's avatar Florian Cargoët

Fix the plugin extend function

parent 46469443
......@@ -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