mokasin/apw — pull request #2 by zml2008 (2013-08-16 04:23:29+00:00)
Title: A few changes to improve readout accuracy & clean code

- Rename pulseaudio:GetState to pulseaudio:UpdateState() to more
accurately reflect its function of updating the state of the active
object.
- Split up the widget's update function into _update and
widget.Update(). _update updates the widget's value from the pulse
handle's cache, while widget.Update() updates the cache first, making it
functional for calling in a timer to respond to outside updates.
- Remove invalid f:close() call. Functions cannot be called on null
tables.