diff --git a/Libraries/vendor/emitter/EventEmitter.js b/Libraries/vendor/emitter/EventEmitter.js index d8b679214..cb3725ebb 100644 --- a/Libraries/vendor/emitter/EventEmitter.js +++ b/Libraries/vendor/emitter/EventEmitter.js @@ -1,16 +1,10 @@ /** - * @generated SignedSource<<494e66dea72a3e90b763a5ec50b1e0ca>> + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * !! This file is a check-in of a static_upstream project! !! - * !! !! - * !! You should not modify this file directly. Instead: !! - * !! 1) Use `fjs use-upstream` to temporarily replace this with !! - * !! the latest version from upstream. !! - * !! 2) Make your changes, test them, etc. !! - * !! 3) Use `fjs push-upstream` to copy your changes back to !! - * !! static_upstream. !! - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventEmitter * @typechecks @@ -164,13 +158,9 @@ class EventEmitter { // The subscription may have been removed during this event loop. if (subscription) { this._currentSubscription = subscription; - - ErrorUtils.applyWithGuard( - subscription.listener, + subscription.listener.apply( subscription.context, - Array.prototype.slice.call(arguments, 1), - null, - 'EventEmitter:' + eventType + Array.prototype.slice.call(arguments, 1) ); } }