Have Document#activate() use the internal #_index property.

This commit is contained in:
Jürg Lehni 2011-05-14 17:57:59 +01:00
parent 2fa64bb343
commit 897e00fee5

View file

@ -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;
}