From 861127e77e1e1bdacfedc1989f55ab37afb808d4 Mon Sep 17 00:00:00 2001 From: Steven B Date: Thu, 25 Aug 2016 13:53:21 -0400 Subject: [PATCH] Fixed jQuery not found error Replaced reference to window.jQuery in removeHighlight plugin --- src/contrib/highlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contrib/highlight.js b/src/contrib/highlight.js index 1cd13c59e..d7d4407b7 100644 --- a/src/contrib/highlight.js +++ b/src/contrib/highlight.js @@ -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;