Make sure it is a function

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1447/head
Joas Schilling 8 years ago committed by Lukas Reschke
parent 6c3f0fd431
commit cc33f8695b
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1

@ -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…
Cancel
Save