<gh_stars>0
{"ast":null,"code":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule EventSubscription\n * @typechecks\n */\n'use strict';\n/**\n * EventSubscription represents a subscription to a particular event. It can\n * remove its own subscription.\n */\n\nfunction _classCallCheck(instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError('Cannot call a class as a function');\n  }\n}\n\nvar EventSubscription = function () {\n  /**\n   * @param {EventSubscriptionVendor} subscriber the subscriber that controls\n   *   this subscription.\n   */\n  function EventSubscription(subscriber) {\n    _classCallCheck(this, EventSubscription);\n\n    this.subscriber = subscriber;\n  }\n  /**\n   * Removes this subscription from the subscriber that controls it.\n   */\n\n\n  EventSubscription.prototype.remove = function remove() {\n    if (this.subscriber) {\n      this.subscriber.removeSubscription(this);\n      this.subscriber = null;\n    }\n  };\n\n  return EventSubscription;\n}();\n\nmodule.exports = EventSubscription;","map":{"version":3,"sources":["/home/aleksandr/Documents/HwProj-2.0.1/hwproj.courseworks.front/node_modules/fbemitter/lib/EventSubscription.js"],"names":["_classCallCheck","instance","Constructor","TypeError","EventSubscription","subscriber","prototype","remove","removeSubscription","module","exports"],"mappings":"AAAA;;;;;;;;;;;AAYA;AAEA;;;;;AAKA,SAASA,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;AAAE,MAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;AAAE,UAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;AAA2D;AAAE;;AAEzJ,IAAIC,iBAAiB,GAAI,YAAY;AAEnC;;;;AAKA,WAASA,iBAAT,CAA2BC,UAA3B,EAAuC;AACrCL,IAAAA,eAAe,CAAC,IAAD,EAAOI,iBAAP,CAAf;;AAEA,SAAKC,UAAL,GAAkBA,UAAlB;AACD;AAED;;;;;AAIAD,EAAAA,iBAAiB,CAACE,SAAlB,CAA4BC,MAA5B,GAAqC,SAASA,MAAT,GAAkB;AACrD,QAAI,KAAKF,UAAT,EAAqB;AACnB,WAAKA,UAAL,CAAgBG,kBAAhB,CAAmC,IAAnC;AACA,WAAKH,UAAL,GAAkB,IAAlB;AACD;AACF,GALD;;AAOA,SAAOD,iBAAP;AACD,CAzBuB,EAAxB;;AA2BAK,MAAM,CAACC,OAAP,GAAiBN,iBAAjB","sourcesContent":["/**\n * Copyright (c) 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule EventSubscription\n * @typechecks\n */\n\n'use strict';\n\n/**\n * EventSubscription represents a subscription to a particular event. It can\n * remove its own subscription.\n */\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nvar EventSubscription = (function () {\n\n  /**\n   * @param {EventSubscriptionVendor} subscriber the subscriber that controls\n   *   this subscription.\n   */\n\n  function EventSubscription(subscriber) {\n    _classCallCheck(this, EventSubscription);\n\n    this.subscriber = subscriber;\n  }\n\n  /**\n   * Removes this subscription from the subscriber that controls it.\n   */\n\n  EventSubscription.prototype.remove = function remove() {\n    if (this.subscriber) {\n      this.subscriber.removeSubscription(this);\n      this.subscriber = null;\n    }\n  };\n\n  return EventSubscription;\n})();\n\nmodule.exports = EventSubscription;"]},"metadata":{},"sourceType":"script"}