comparison client/digitallibrary/jquery/jquery.digilib.regions.js @ 868:b7258b7334e3 jquery

can't delete from undefined
author hertzhaft
date Sun, 13 Mar 2011 23:23:36 +0100
parents 87d523489ae9
children
comparison
equal deleted inserted replaced
867:87d523489ae9 868:b7258b7334e3
274 $regionLink.attr(attributes); 274 $regionLink.attr(attributes);
275 $regionLink.text(nr); 275 $regionLink.text(nr);
276 $regionDiv.append($regionLink); 276 $regionDiv.append($regionLink);
277 } 277 }
278 if (data.settings.autoRegionLinks) { 278 if (data.settings.autoRegionLinks) {
279 delete attributes.href; 279 if (attributes) {
280 $regionDiv.attr(attributes); 280 delete attributes.href;
281 $regionDiv.attr(attributes);
282 };
281 $regionDiv.bind('click.dlRegion', function() { 283 $regionDiv.bind('click.dlRegion', function() {
282 window.location = url; 284 window.location = url;
283 }); 285 });
284 } 286 }
285 return $regionDiv; 287 return $regionDiv;