jefflinwood/twilio_client_phonegap — pull request #14 by peder541 (2014-12-09 15:31:25+00:00)
Title: A few tweaks to how device status and setup works.

Most of the SDKs essentially release the device when an empty token is passed to device.setup(), so I figured it made sense to make that a consistent behavior everywhere.

Also, device.setup() isn't guaranteed to leave the device in the ready state, so I added a check to the device's state.

Finally, TwilioPlugin.Device.prototype.status needs to take a function as a parameter, otherwise it doesn't do anything.