Add Document#getIndex().

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

View file

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