mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ Feature: When returning from a tab that is in a stack, arrange it at the top of the stack (but don't change its order in the children list)
+ TabItems now keeps track of all TabItem objects manually; we were using $('.tab:visible'), but this was causing bizarre behavior in certain cases
This commit is contained in:
parent
484ad3e488
commit
6bbee5b968
@ -577,8 +577,12 @@ var Utils = {
|
||||
// Returns a copy of the argument. Note that this is a shallow copy; if the argument
|
||||
// has properties that are themselves objects, those properties will be copied by reference.
|
||||
copy: function(value) {
|
||||
if(value && typeof(value) == 'object')
|
||||
if(value && typeof(value) == 'object') {
|
||||
if($.isArray(value))
|
||||
return $.extend([], value);
|
||||
|
||||
return $.extend({}, value);
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user