Skip to content

Commit 1ed203e

Browse files
committed
Layouts expect jQuery collections.
1 parent ac0487e commit 1ed203e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/jquery.syntax.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ Syntax.highlight = function (elements, options, callback) {
11431143

11441144
Syntax.highlightText(text, options, function(html, brush/*, text, options*/) {
11451145
Syntax.layouts.get(options.layout, function(layout) {
1146-
html = layout(options, $(html), $(container));
1146+
html = layout(options, jQuery(html), jQuery(container));
11471147

11481148
// If there is a theme specified, ensure it is added to the top level class.
11491149
if (options.theme) {

0 commit comments

Comments
 (0)