Fix memento plugin: return modified options (not defaults!)

This commit is contained in:
Luis Leiva 2016-11-27 20:49:23 +01:00
parent d3b5b5683a
commit f9b8ac8524
1 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@
callbacks[ev].apply(elem, args); callbacks[ev].apply(elem, args);
} }
} else { } else {
plugin.defaults.events[ev] = callbacks[ev]; options.events[ev] = callbacks[ev];
} }
}; };
@ -216,7 +216,7 @@
} }
}); });
return plugin.defaults; return options;
}; };
/** /**