# HG changeset patch # User hertzhaft # Date 1300055016 -3600 # Node ID 8ddc379e83af208f81c9b6b78a05576037c3a776 # Parent 46444fe43b15f075128addfc5875c48066376038 can't delete from undefined diff -r 46444fe43b15 -r 8ddc379e83af client/digitallibrary/jquery/jquery.digilib.regions.js --- a/client/digitallibrary/jquery/jquery.digilib.regions.js Sun Mar 13 21:57:50 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.regions.js Sun Mar 13 23:23:36 2011 +0100 @@ -276,8 +276,10 @@ $regionDiv.append($regionLink); } if (data.settings.autoRegionLinks) { - delete attributes.href; - $regionDiv.attr(attributes); + if (attributes) { + delete attributes.href; + $regionDiv.attr(attributes); + }; $regionDiv.bind('click.dlRegion', function() { window.location = url; });