Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var title;
for (var i=0; i
var partnerFarmersRenderArray = [];
var i = 0;
var len = partnerFarmersArray.length;
for (; i < len; i++) {
var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
partnerFarmersRenderArray.push(currentPartnerFarmerData);
}
this._references.$farmerPagesContainer.empty();
var renderData = {
farmers: partnerFarmersArray
};
viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
},
currentCommentsItemData._replied = true;
}
currentReply._formattedLikedCount = Util.integerCommaFormat(currentReply.likedCount);
currentReply._likesPlural = currentReply.likedCount != 1;
}
*/
renderCommentsArray.push(currentCommentsItemData);
}
var renderData = {
comments: renderCommentsArray
};
viewRenderer.renderAppend(this._references.$commentsList, commentTemplate, renderData);
},
currentReply._formattedLikedCount = Util.integerCommaFormat(currentReply.likedCount);
currentReply._likesPlural = currentReply.likedCount != 1;
}
*/
renderCommentsArray.push(currentCommentsItemData);
}
var renderData = {
comments: renderCommentsArray
};
if (addedComment){
viewRenderer.renderHTML(this._references.$commentsList, commentTemplate, renderData);
}
else {
viewRenderer.renderAppend(this._references.$commentsList, commentTemplate, renderData);
}
},
_renderActivities: function(activitiesData) {
var renderData = {
activities: activitiesData
};
viewRenderer.renderAppend(this._references.$activitiesContainer, activityTemplate, renderData);
this._initCarousels();
stButtons.locateElements();
},
var partnerFarmersRenderArray = [];
var i = 0;
var len = partnerFarmersArray.length;
for (; i < len; i++) {
var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
partnerFarmersRenderArray.push(currentPartnerFarmerData);
}
this._references.$farmerPagesContainer.empty();
var renderData = {
farmers: partnerFarmersArray
};
viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
},
_renderNewsItems: function(activitiesData) {
var renderData = {
activities: activitiesData
};
viewRenderer.renderAppend(this._references.$newsItemsContainer, newsItemTemplate, renderData);
this._initCarousels();
},
var partnerFarmersRenderArray = [];
var i = 0;
var len = partnerFarmersArray.length;
for (; i < len; i++) {
var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
partnerFarmersRenderArray.push(currentPartnerFarmerData);
}
this._references.$farmerPagesContainer.empty();
var renderData = {
farmers: partnerFarmersArray
};
viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
},
_renderNewsItems: function(activitiesData) {
var renderData = {
activities: activitiesData
};
viewRenderer.renderAppend(this._references.$newsItemsContainer, newsItemTemplate, renderData);
this._initCarousels();
},