Permalink
Browse files

added a try around iframe positioning as sometimes ie complains there

  • Loading branch information...
1 parent 0edac49 commit 7c9d64591eb0e43102429e496beac9a5f97c13e8 @jnunemaker committed Jul 8, 2008
Showing with 6 additions and 4 deletions.
  1. +6 −4 annoying.js
View
@@ -54,10 +54,12 @@ var Annoying = {
if (!element) { return; }
var iframe = Annoying.iFrameFor(element);
if (element && iframe) {
- iframe.clonePosition(element);
- iframe.setStyle({zIndex: 1});
- element.setStyle({zIndex: 2});
- iframe.show();
+ try {
+ iframe.clonePosition(element);
+ iframe.setStyle({zIndex: 1});
+ element.setStyle({zIndex: 2});
+ iframe.show();
+ } catch(e) {}
}
}
}

0 comments on commit 7c9d645

Please sign in to comment.