assets/itsa-mojitonthefly.client.js
function (promise) {
            var targets = this._targets;
            targets.push(promise);
            promise['catch'](
                function() {
                    return true;
                }
            ).then(
                function() {
                    targets.splice(targets.indexOf(promise), 1);
                }
            );
            return Notifier.decorate(promise);
        }
function (promise) {
            var targets = this._targets;
            targets.push(promise);
            promise['catch'](
                function() {
                    return true;
                }
            ).then(
                function() {
                    targets.splice(targets.indexOf(promise), 1);
                }
            );
            return Notifier.decorate(promise);
        }
function ( promise ) { var targets = this . _targets ; targets . push ( promise ) ; promise [ 'catch' ] ( function ( ) { return true ; } ) . then ( function ( ) { targets . splice ( targets . indexOf ( promise ) , 1 ) ; } ) ; return Notifier . decorate ( promise ) ; }
Decorate a promise and register it and its kin as targets for notifications
from this instance.

Returns the input promise.

@method addEvents
@param {Promise} promise The Promise to add event support to
@return {Promise}
Decorate a promise and register it and its kin as targets for notifications from this instance .