this.$node = $(node);
this.$node.data('details', this);
- var anchor = location.hash && location.hash !== '#' ? ', ' + location.hash : '';
+ var anchor = window.location.hash && window.location.hash !== '#' ? ', ' + window.location.hash : '';
if (this.$node.find('.error' + anchor).length) {
this.$node.attr('open', true);
}