+ 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:
Ian Gilman 2010-05-18 17:08:45 -07:00
parent 484ad3e488
commit 6bbee5b968

View File

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