1
0
Fork 0
forked from 0x2620/oxjs

Lists: Add getPasteIndex method

This commit is contained in:
rolux 2014-02-12 13:56:54 +00:00
commit 603dfa3d3a
5 changed files with 22 additions and 0 deletions

View file

@ -1589,6 +1589,12 @@ Ox.List = function(options, self) {
return that;
};
that.getPasteIndex = function() {
return self.selected.length
? Ox.max(self.selected) + 1
: self.items.length;
};
/*@
invertSelection <f> Invert selection
() -> <o> The list