Skip to content

Commit

Permalink
Fixed jQuery not found error
Browse files Browse the repository at this point in the history
Replaced reference to window.jQuery in removeHighlight plugin
  • Loading branch information
Stevebel authored Aug 25, 2016
1 parent 7603089 commit 861127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contrib/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var highlight = function($element, pattern) {
* removeHighlight fn copied from highlight v5 and
* edited to remove with() and pass js strict mode
*/
jQuery.fn.removeHighlight = function() {
$.fn.removeHighlight = function() {
return this.find("span.highlight").each(function() {
this.parentNode.firstChild.nodeName;
var parent = this.parentNode;
Expand Down

0 comments on commit 861127e

Please sign in to comment.