From 897e00fee5abba17ecbf65b278653f4bc2ce826f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 14 May 2011 17:57:59 +0100 Subject: [PATCH] Have Document#activate() use the internal #_index property. --- src/document/Document.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }