Refactored new pick interfacer

This commit is contained in:
Sebastián Katzer
2016-07-25 15:04:20 +02:00
parent ab27a63a9d
commit b3bd6e226f
3 changed files with 180 additions and 158 deletions

View File

@@ -67,11 +67,13 @@ exports.isAvailable = function (callback, scope) {
* @param {Object} options
* Options for the printer picker
*/
exports.printerPicker = function (callback, options) {
var fn = this._createCallbackFn(callback);
exports.pick = function (callback, options) {
var fn = this._createCallbackFn(callback);
var params = options || {};
params = this.mergeWithDefaults(params);
exec(fn, null, 'Printer', 'printerPicker', [params]);
exec(fn, null, 'Printer', 'pick', [params]);
};
/**