Files changed (1)
- Ignore whitespace
This will inject the plugin into the page if it isn't already there, create a new instance of the `Communicator` controller, and (if the second argument is true), start looking for devices right away.
Your delegate's attributes that match the various events are then called when an event occurs. You can also manually set listeners for the events like `$(document).on('onFinishReadFromDevice', handler)`. The handler will recieve a jQuery Event object, and depending upon the event, there may also be a `data` object. Event.data contains a reference to the controller object.
+This usage is new: there may still be some bugs (like things happening before the devices are loaded), as I'm still looking into the bare constructor.