Replace process.api with Event

This commit is contained in:
kepler155c@gmail.com
2017-07-28 19:01:59 -04:00
parent f8bcf90a6b
commit be51935662
21 changed files with 326 additions and 343 deletions

View File

@@ -201,11 +201,11 @@ function methodsPage.viewportConsole:draw()
c.ymax = c.cursorY + 1
end
Event.addHandler('peripheral', function()
Event.on('peripheral', function()
peripheralsPage:updatePeripherals()
end)
Event.addHandler('peripheral_detach', function()
Event.on('peripheral_detach', function()
peripheralsPage:updatePeripherals()
end)
@@ -215,5 +215,4 @@ UI:setPages({
methods = methodsPage,
})
Event.pullEvents()
UI.term:reset()
UI:pullEvents()