Add sub-message to new() parameter as an optional argument
This commit is contained in:
parent
b1f7290ca6
commit
ca62307d09
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,7 @@ var rightLineIndex = 0;
|
||||||
var statusIndex = 0;
|
var statusIndex = 0;
|
||||||
|
|
||||||
var warning = {
|
var warning = {
|
||||||
new: func(msg,colour,aural,light) {
|
new: func(msg,colour,aural,light,hasSubmsg = 0,lastSubmsg = 0) {
|
||||||
var t = {parents:[warning]};
|
var t = {parents:[warning]};
|
||||||
|
|
||||||
t.msg = msg;
|
t.msg = msg;
|
||||||
|
@ -36,6 +36,8 @@ var warning = {
|
||||||
t.light = light;
|
t.light = light;
|
||||||
t.noRepeat = 0;
|
t.noRepeat = 0;
|
||||||
t.clearFlag = 0;
|
t.clearFlag = 0;
|
||||||
|
t.hasSubmsg = hasSubmsg;
|
||||||
|
t.lastSubmsg = lastSubmsg;
|
||||||
|
|
||||||
return t
|
return t
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue