message: only test loop length in _search method
diff: @@ -219,12 +219,10 @@ define(["Tone/core/Tone"], function (Tone) {
  * @returns {Tone.Timeline} this
  */
  Tone.Timeline.prototype.cancelBefore = function(time){
  - if (this._timeline.length){
  var index = this._search(time);
  if (index >= 0){
  this._timeline = this._timeline.slice(index + 1);
  }
  - }
  return this;
  };
  @@ -253,6 +251,9 @@ define(["Tone/core/Tone"], function (Tone) {
  * @private
  */
  Tone.Timeline.prototype._search = function(time, comparitor){
  + if (this._timeline.length === 0){
  + return -1;
  + }
  comparitor = Tone.defaultArg(comparitor, "time");
  var beginning = 0;
  var len = this._timeline.length;
  