pzuraq / liquid-wormhole

Animated wormholes, built on Liquid Fire! Inspired by ember-wormhole
MIT License
20 stars 20 forks source link

Liquid Wormhole destination does not exist #36

Closed lovetingyuan closed 7 years ago

lovetingyuan commented 7 years ago
removeWormhole(wormhole, destinationName = 'default') {
    const destination = this.destination.get(destinationName);

    if (destination === undefined) {
      throw new Error('Liquid Wormhole destination does not exist');
    }

    destination.removeWormhole(wormhole);
  },

why are you so good at throwing errors ? is it funny?

pzuraq commented 7 years ago

See #35