Skip to content

Commit 8affd5b

Browse files
committed
Fixed an issue where some expressions without owners might cause issues.
1 parent e273ee1 commit 8affd5b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/jquery.syntax.core.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,11 @@ Syntax.Brush.prototype.process = function(text, matches) {
912912
container = match.expression.process(container, match);
913913
}
914914

915-
var process = match.expression.owner.processes[match.expression.klass];
916-
if (process) {
917-
container = process(container, match);
915+
if (match.expression.owner) {
916+
var process = match.expression.owner.processes[match.expression.klass];
917+
if (process) {
918+
container = process(container, match);
919+
}
918920
}
919921
}
920922
return container;

0 commit comments

Comments
 (0)