mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Have Document#activate() use the internal #_index property.
This commit is contained in:
parent
2fa64bb343
commit
897e00fee5
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue