Skip to content

Commit

Permalink
Removed deprecated jQuery 'live' event handler
Browse files Browse the repository at this point in the history
jQuery live() event handler attachment was deprecated as of jQuery 1.7. Changed tooltip code to use on() event handler attachment instead. Plugin should now work in jQuery versions beyond 1.7.
  • Loading branch information
Adam Weber committed Aug 19, 2014
1 parent 5190e8c commit ad67b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.lingsTooltip.js
Expand Up @@ -301,12 +301,12 @@
}
$($.tooltip.autoTipDefaults.autoTipSelector).each(function(){ createTooltip(this); });

$($.tooltip.autoTipDefaults.autoTipSelector).live('DOMNodeInserted', function(){
$($.tooltip.autoTipDefaults.autoTipSelector).on('DOMNodeInserted', function(){
if($.tooltip.autoTipDefaults.autoTip) createTooltip(this);
});

}

$(document).ready($.tooltip.autoTip);

})(jQuery, window, document);
})(jQuery, window, document);

0 comments on commit ad67b5b

Please sign in to comment.