Skip to content

Commit c8e3bf5

Browse files
authored
Merge pull request #1794 from dpvc/issue1680
Properly handle arrays of elements in Typeset() call without callbacks. #1680
2 parents 122c427 + 3c02ff3 commit c8e3bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/MathJax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ MathJax.cdnFileVersions = {}; // can be used to specify revisions for individua
298298
{args = [].slice.call(args,i)}
299299
else {args = [].slice.call(arguments,0)}
300300
}
301-
if (isArray(args) && args.length === 1) {args = args[0]}
301+
if (isArray(args) && args.length === 1 && typeof(args[0]) === 'function') {args = args[0]}
302302
if (typeof args === 'function') {
303303
if (args.execute === CALLBACK.prototype.execute) {return args}
304304
return CALLBACK({hook: args});

0 commit comments

Comments
 (0)