prevent error if parser is missing "is" function

This commit is contained in:
Mottie 2013-01-26 08:53:56 -06:00
parent ca875263c2
commit 678baf14b6

View File

@ -160,7 +160,7 @@
}
}
for (i = 1; i < l; i++) {
if (ts.parsers[i].is(nodeValue, table, node)) {
if (ts.parsers[i].is && ts.parsers[i].is(nodeValue, table, node)) {
return ts.parsers[i];
}
}