Unverified Commit e1c1e903 authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Fix logic error

- Should be a not on line 356 of event.js
parent f8a03b47
......@@ -353,7 +353,7 @@ var ICalEvent = function(_data, calendar) {
data.repeating.exclude = [];
repeating.exclude.forEach(function(excludedDate) {
if(Object.prototype.toString.call(excludedDate) === '[object Date]') {
if(!(Object.prototype.toString.call(excludedDate) === '[object Date]')) {
throw '`repeating.exclude` contains invalid value `' + excludedDate + '`!';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment