Permalink
Browse files

Update src/javascripts/jquery.tipsy.js

Fixed redundant IE double tip from title on 'live' tipsy's
  • Loading branch information...
1 parent 1ee9c02 commit a06a3cdc8e682062cdd4cfebba9ec7861e88592b @dkimbell13 committed Aug 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/javascripts/jquery.tipsy.js
@@ -121,7 +121,8 @@
fixTitle: function() {
var $e = this.$element;
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
- $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title').attr("title", "");
+ var $title = $e.attr('title');
+ $e.removeAttr('title').attr('title','').attr('original-title', $title || '');
}
},

0 comments on commit a06a3cd

Please sign in to comment.