Skip to content

Commit

Permalink
[BUGFIX] Use hasOwnProperty to prevent JS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel committed Oct 6, 2014
1 parent afaa5c7 commit 3c9dcfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Resources/Public/js/fluxCollapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ FluidTYPO3.Components.FluxCollapse = {
fluxGrid.removeClass('flux-grid-hidden');
toggle.replaceClass('t3-icon-view-table-expand', 't3-icon-view-table-collapse');
for (var i in cookie) {
if (cookie[i] == uid) {
delete(cookie[i]);
if (cookie.hasOwnProperty(i)) {
if (cookie[i] == uid) {
delete(cookie[i]);
}
}
}
} else {
Expand Down

0 comments on commit 3c9dcfd

Please sign in to comment.