code: function(listener) {
              var instance = this;
              if (listener) {
                  instance._removeSubscribers(listener, '*:*');
              }
              else {
                  // we cannot just redefine _subs, for it is set as readonly
                  instance._subs.itsa_each(
                      function(value, key) {
                          delete instance._subs[key];
                      }
                  );
              }
          }
docs: Detaches (unsubscribes) the listener from all customevents.
  
  @static
  @method detachAll
  @param listener {Object} The instance that is going to detach the customEvent
  @since 0.0.1