WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
Showing only changes of commit e52c44580f - Show all commits

View file

@ -138,3 +138,8 @@ function requestAuth(data, callback, focus_next = null) {
});
}
String.prototype.pluralize = function(count, irreg_plural = false) {
plural = irreg_plural ? irreg_plural : this + 's' ;
return (count==1 ? this : plural) ;
}