diff --git a/src/document/Document.js b/src/document/Document.js index 574dd073..c907773d 100644 --- a/src/document/Document.js +++ b/src/document/Document.js @@ -113,9 +113,7 @@ var Document = this.Document = Base.extend({ }, activate: function() { - // TODO: Remove indexOf() - var index = this._scope.documents.indexOf(this); - if (index != -1) { + if (this._index != null) { this._scope.document = this; return true; }