dist/ng-cordova.js
function (promise){
    		promise.success = function (fn) {
	            promise.then(fn);
	            return promise;
	        };

	        promise.error = function (fn) {
	            promise.then(null, fn);
	            return promise;
	        };
    	}
function (promise){
    		promise.success = function (fn) {
	            promise.then(fn);
	            return promise;
	        };

	        promise.error = function (fn) {
	            promise.then(null, fn);
	            return promise;
	        };
    	}
function ( promise ) { promise . success = function ( fn ) { promise . then ( fn ) ; return promise ; } ; promise . error = function ( fn ) { promise . then ( null , fn ) ; return promise ; } ; }
Decorate the promise object.
@param promise The promise object.
Decorate the promise object .