webapi/src/components/sp/widgets/treelight.js
function () {

							if (!enumer.moveNext()) {
								cb(groups);
								return;
							}
							var li = enumer.get_current();
							var name = li.get_item("Name");
							if (name.search(" ") > 0) {
								doNext();
							}
							else {
								var id = li.get_item("ID");
								var user = web.ensureUser(name);
								ctx.load(user);
								groups.push({ text: name, id: id + "_User", data: user, icon: "/_layouts/images/ribbon_userprofile_16.png" });
								//count++;
								//if (count % 50 == 0)
								ctx.executeQueryAsync(function () {
									doNext();
								}, function () {
									doNext();
								});

							}
						}
function () {

							if (!enumer.moveNext()) {
								cb(groups);
								return;
							}
							var li = enumer.get_current();
							var name = li.get_item("Name");
							if (name.search(" ") > 0) {
								doNext();
							}
							else {
								var id = li.get_item("ID");
								var user = web.ensureUser(name);
								ctx.load(user);
								groups.push({ text: name, id: id + "_User", data: user, icon: "/_layouts/images/ribbon_userprofile_16.png" });
								//count++;
								//if (count % 50 == 0)
								ctx.executeQueryAsync(function () {
									doNext();
								}, function () {
									doNext();
								});

							}
						}
function ( ) { if ( ! enumer . moveNext ( ) ) { cb ( groups ) ; return ; } var li = enumer . get_current ( ) ; var name = li . get_item ( "Name" ) ; if ( name . search ( " " ) > 0 ) { doNext ( ) ; } else { var id = li . get_item ( "ID" ) ; var user = web . ensureUser ( name ) ; ctx . load ( user ) ; groups . push ( { text : name , id : id + "_User" , data : user , icon : "/_layouts/images/ribbon_userprofile_16.png" } ) ; //count++; //if (count % 50 == 0) ctx . executeQueryAsync ( function ( ) { doNext ( ) ; } , function ( ) { doNext ( ) ; } ) ; } }
var count = 0;
var count = 0 ;