code: function clearQueue() {
      return function clearQueueImpl() {
        var self = this;
        var selfIsArrayLike = self.length !== undefined;
        var all = selfIsArrayLike ? self : [self]; // put in array if not array-like
  
        var cy = this._private.cy || this;
  
        if (!cy.styleEnabled()) {
          return this;
        }
  
        for (var i = 0; i < all.length; i++) {
          var ele = all[i];
          ele._private.animation.queue = [];
        }
  
        return this;
      };
    }
docs: animated