Renamed isAvailable to check

This commit is contained in:
Sebastián Katzer
2016-08-03 17:20:10 +02:00
parent a1dc163ccc
commit 7d38b4e354
5 changed files with 34 additions and 27 deletions

View File

@@ -54,10 +54,17 @@ exports.getDefaults = function () {
*
* @return {Boolean}
*/
exports.isAvailable = function (callback, scope) {
exports.check = function (callback, scope) {
var fn = this._createCallbackFn(callback);
exec(fn, null, 'Printer', 'isAvailable', []);
exec(fn, null, 'Printer', 'check', []);
};
/**
* @deprecated API call. Use `check` instead!
*/
exports.isAvailable = function () {
exports.check.apply(exports, arguments);
};
/**