dist/sdk.js
function validateCallbacks(options) {
            if (options.successCallback && typeof options.successCallback !== 'function') {
                throw new Error(TAG + 'Success callback must be a function.');
            } else {
                options.successCallback = options.successCallback || enplug.noop;
            }

            if (options.errorCallback && typeof options.errorCallback !== 'function') {
                throw new Error(TAG + 'Error callback must be a function.');
            } else {
                options.errorCallback = options.errorCallback || enplug.noop;
            }
        }
function validateCallbacks(options) {
            if (options.successCallback && typeof options.successCallback !== 'function') {
                throw new Error(TAG + 'Success callback must be a function.');
            } else {
                options.successCallback = options.successCallback || enplug.noop;
            }

            if (options.errorCallback && typeof options.errorCallback !== 'function') {
                throw new Error(TAG + 'Error callback must be a function.');
            } else {
                options.errorCallback = options.errorCallback || enplug.noop;
            }
        }
function validateCallbacks ( options ) { if ( options . successCallback && typeof options . successCallback !== 'function' ) { throw new Error ( TAG + 'Success callback must be a function.' ) ; } else { options . successCallback = options . successCallback || enplug . noop ; } if ( options . errorCallback && typeof options . errorCallback !== 'function' ) { throw new Error ( TAG + 'Error callback must be a function.' ) ; } else { options . errorCallback = options . errorCallback || enplug . noop ; } }
Validate and assign defaults for callback methods.
@param {MethodCall} options
Validate and assign defaults for callback methods .