summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-10-29 19:20:32 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-11-20 18:31:40 +0100
commit0e6d47123a9b47b977b821bd8fbeb92b3c8893a1 (patch)
tree154b75c1bd61ad13b46f7fb4fad99479638a20ed /apps/user_ldap/js
parentd8bb8afee33d96943fedbe619bfb2d7668cb6bb6 (diff)
downloadnextcloud-server-0e6d47123a9b47b977b821bd8fbeb92b3c8893a1.tar.gz
nextcloud-server-0e6d47123a9b47b977b821bd8fbeb92b3c8893a1.zip
use underscore.js for undefined checks
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/settings.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js
index be1db28648f..f6fcaa2849e 100644
--- a/apps/user_ldap/js/settings.js
+++ b/apps/user_ldap/js/settings.js
@@ -151,7 +151,7 @@ var LdapWizard = {
ajaxRequests: {},
ajax: function(param, fnOnSuccess, fnOnError, reqID) {
- if(typeof reqID !== 'undefined') {
+ if(!_.isUndefined(reqID)) {
if(LdapWizard.ajaxRequests.hasOwnProperty(reqID)) {
console.log('aborting ' + reqID);
console.log(param);
@@ -169,7 +169,7 @@ var LdapWizard = {
}
}
);
- if(typeof reqID !== 'undefined') {
+ if(!_.isUndefined(reqID)) {
LdapWizard.ajaxRequests[reqID] = request;
}
return request;
@@ -354,14 +354,14 @@ var LdapWizard = {
function(result) {
LdapWizard.applyChanges(result);
LdapWizard.hideSpinner(spinnerID);
- if(doneCallback !== undefined) {
+ if(!_.isUndefined(doneCallback)) {
doneCallback(method);
}
},
function (result) {
OC.Notification.show('Counting the entries failed with, ' + result.message);
LdapWizard.hideSpinner(spinnerID);
- if(doneCallback !== undefined) {
+ if(!_.isUndefined(doneCallback)) {
doneCallback(method);
}
},