create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
38 lines (32 loc) • 877 B
JavaScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*
*/
;
/**
* EventSubscription represents a subscription to a particular event. It can
* remove its own subscription.
*/
var _EventSubscription = /*#__PURE__*/function () {
/**
* @param {EventSubscriptionVendor} subscriber the subscriber that controls
* this subscription.
*/
function _EventSubscription(subscriber) {
this.subscriber = subscriber;
}
/**
* Removes this subscription from the subscriber that controls it.
*/
var _proto = _EventSubscription.prototype;
_proto.remove = function remove() {
this.subscriber.removeSubscription(this);
};
return _EventSubscription;
}();
export default _EventSubscription;