diff --git a/src/project.js b/src/project.js index 48541c395..734dfcad7 100644 --- a/src/project.js +++ b/src/project.js @@ -646,11 +646,7 @@ class Project extends Model { } addBuffer (buffer, options = {}) { - return this.addBufferAtIndex(buffer, this.buffers.length, options) - } - - addBufferAtIndex (buffer, index, options = {}) { - this.buffers.splice(index, 0, buffer) + this.buffers.push(buffer) this.subscribeToBuffer(buffer) this.emitter.emit('did-add-buffer', buffer) return buffer