Make sure it is a function
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6c3f0fd431
commit
cc33f8695b
|
@ -1574,7 +1574,7 @@ OC.PasswordConfirmation = {
|
|||
self.$form.addClass('hidden');
|
||||
self.$background.addClass('hidden');
|
||||
|
||||
if (!_.isUndefined(self.callback)) {
|
||||
if (_.isFunction(self.callback)) {
|
||||
self.callback();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue