Clean the code

This commit is contained in:
yflory
2016-10-26 17:50:59 +02:00
parent ab1d3958ce
commit 3de4e5709b

View File

@@ -261,13 +261,11 @@ define([
if (users && users.length) {
for (var userKey in userData) {
console.log(userKey);
if (users.indexOf(userKey) === -1) { console.log('delete'); delete userData[userKey]; }
if (users.indexOf(userKey) === -1) { delete userData[userKey]; }
}
}
if(userList && typeof userList.onChange === "function") {
console.log(JSON.stringify(userData));
userList.onChange(userData);
}
};