forked from 0x2620/oxjs
Lists: Add getPasteIndex method
This commit is contained in:
parent
7db11814e3
commit
603dfa3d3a
5 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue