mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Add Document#getIndex().
This commit is contained in:
parent
df51b25fec
commit
2fa64bb343
1 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,10 @@ var Document = this.Document = Base.extend({
|
|||
this._currentStyle = PathStyle.create(null, style);
|
||||
},
|
||||
|
||||
getIndex: function() {
|
||||
return this._index;
|
||||
},
|
||||
|
||||
activate: function() {
|
||||
// TODO: Remove indexOf()
|
||||
var index = this._scope.documents.indexOf(this);
|
||||
|
|
Loading…
Reference in a new issue