Use local reference to Network in constructor
To allow customizing the bc module in compatibility wrappers, use the local reference instead of a global one. This means a wrapper module could set `BaseControl.Network` to a different default.
This commit is contained in:
parent
22328f313d
commit
d2a1a8ebe5
1 changed files with 1 additions and 1 deletions
2
bc.lua
2
bc.lua
|
|
@ -139,7 +139,7 @@ function BaseControl:new(network)
|
|||
listeners = {},
|
||||
|
||||
live = false,
|
||||
network = network or Network:new(),
|
||||
network = network or BaseControl.Network:new(),
|
||||
}
|
||||
setmetatable(self, {__index=BaseControl, __call=BaseControl.new})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue