Big 2.0 refactor: 1) Jasmine for tests. 2) Q promise based API with delegate objects for the async callbacks from the native layer. 3) Replaced the target from the global window object into window.cordova.plugins.LocationManager (the IBeacon root object is now deprecated) 4) New library dependencies: Q, underscorejs, klass. 5) The plugin can now monior circular regions as well, not just beacon ones. 6) It is now possible to enable/disable debug logging into the device logs. 7) New API call to append messages to the device logs, directly from the DOM
Fixed IDE warnings in the JSDoc of LocationManager.js
Regions.fromJsonArray returns a new array instead of mutating the one passed in as a parameter.
Removed logging that was not necessary and a code statement which was used for debugging only.
Regions.js => Fixed up documentation a little, applied IDE formatting.
Fixed the order of positional arguments in the Region subclass constructors. Added tests to check if the constructors are working fine.
Added missing require call in Regions.js, it had a new dependency (Region.js) which wasn't included.