made BinStore a static class
This commit is contained in:
@@ -105,7 +105,7 @@ class HomeContext {
|
||||
}
|
||||
|
||||
private function spawnPs(binName: String) {
|
||||
var bin = BinStore.instance.getBinByAlias(binName);
|
||||
var bin = BinStore.getBinByAlias(binName);
|
||||
|
||||
if (bin == null) {
|
||||
Log.error('Could not find bin: ${binName}');
|
||||
@@ -159,7 +159,7 @@ class HomeContext {
|
||||
|
||||
for (i in 0...listedApps.length) {
|
||||
children.push(new TextElement(
|
||||
'Add ${BinStore.instance.getNameByAlias(listedApps[i])}',
|
||||
'Add ${BinStore.getNameByAlias(listedApps[i])}',
|
||||
{uiEvents: {onClick: this.spawnPs.bind(listedApps[i])}}
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user