Moving to a class-based approach

This commit is contained in:
Max Lynch
2015-11-25 11:44:58 -06:00
parent e455e8ebcf
commit 188079fdef
16 changed files with 163 additions and 38 deletions
+9
View File
@@ -0,0 +1,9 @@
var util_1 = require('../util');
var PLUGIN_REF = 'navigator.camera';
var Camera = (function () {
function Camera() {
}
Camera.getPicture = util_1.promisify(PLUGIN_REF, 'getPicture', 0, 1);
return Camera;
})();
exports.Camera = Camera;