apache/incubator-cordova-js — pull request #16 by gtanner (2012-05-30 18:57:39+00:00)
Title: Cleanup BlackBerry and PlayBook javascript code and a few fixes to PlayBook

While prepping to start BB10 work I wanted to clean up a bunch of our javascript to better align with cordova.js.

Done in this pull request:

- Refactored to a common exec module for PlayBook and BlackBerry (they already were the same)
- using the build system for cordova.js to drop in the correct platform manager (rather than namespacing it)
- refactored PlayBook manager to use the module system for the plugin's rather than embedded functions.

Fixed in this pull request:

- PlayBook media now working (was missing the create method)
- PlayBook capture methods now working (a lot of weird stuff in there, cleaned up and fixed return type for success callback)
- fixed camera.takePicture and capture APis due to webworks bug (https://github.com/blackberry/WebWorks-TabletOS/issues/51)