fixed typo in test, also Array.isArray instead of instanceof Array

This commit is contained in:
mathematicalcoffee 2013-02-13 12:02:33 +10:00
parent bc35934546
commit bf4e356ee5
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ function addTutorialConf(name, meta) {
if (isTutorialJSON(meta)) {
// if the children are themselves tutorial defintions as opposed to an
// array of strings, add each child.
if (meta.hasOwnProperty('children') && !(meta.children instanceof Array)) {
if (meta.hasOwnProperty('children') && !Array.isArray(meta.children)) {
names = Object.keys(meta.children);
for (i = 0; i < names.length; ++i) {
addTutorialConf(names[i], meta.children[names[i]]);

View File

@ -3,7 +3,7 @@ describe("jsdoc/tutorial/resolver", function() {
var resolver = require('jsdoc/tutorial/resolver'),
tutorial = require('jsdoc/tutorial'),
lenient = !!env.opts.lenient,
log = eval(console.iog);
log = eval(console.log);
/*jshint evil: true */
it("should exist", function() {