This commit is contained in:
Blake Grotewold
2016-03-19 15:00:32 -04:00
3 changed files with 130 additions and 28 deletions
+3
View File
@@ -70,6 +70,9 @@ var Button = {
var cd = btn.data("cooldown");
var id = 'cooldown.'+ btn.attr('id');
if(cd > 0) {
if(typeof option == 'number') {
cd = option;
}
// param "start" takes value from cooldown time if not specified
var start, left;
switch(option){