Hot answers tagged

1

Well, the error says that it is expecting onErrorShow to be an object having the property apply, which is a function. So I'm guessing your code is maybe supposed to be: var onHourShow = { apply: function (hour) { if (hour == 12 || hour == 15 || hour == 17) { return true; } else { return false; } } }; Which as a side note ...


Only top voted, non community-wiki answers of a minimum length are eligible