Make sure it is a function

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-09-19 18:37:55 +02:00 committed by Lukas Reschke
parent 6c3f0fd431
commit cc33f8695b
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -1574,7 +1574,7 @@ OC.PasswordConfirmation = {
self.$form.addClass('hidden');
self.$background.addClass('hidden');
if (!_.isUndefined(self.callback)) {
if (_.isFunction(self.callback)) {
self.callback();
}
},