rm push/pop
This commit is contained in:
4
log.ce
4
log.ce
@@ -391,7 +391,7 @@ function do_enable() {
|
||||
if (is_array(sink.exclude)) {
|
||||
new_exclude = []
|
||||
arrfor(sink.exclude, function(ex) {
|
||||
if (ex != channel) push(new_exclude, ex)
|
||||
if (ex != channel) new_exclude[] = ex
|
||||
})
|
||||
sink.exclude = new_exclude
|
||||
}
|
||||
@@ -438,7 +438,7 @@ function do_disable() {
|
||||
} else {
|
||||
if (is_array(sink.channels)) {
|
||||
arrfor(sink.channels, function(ch) {
|
||||
if (ch != channel) push(new_channels, ch)
|
||||
if (ch != channel) new_channels[] = ch
|
||||
})
|
||||
sink.channels = new_channels
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user