From 67287aec5623d80c3a69f9e697d76fe64afce532 Mon Sep 17 00:00:00 2001 From: jsgoupil Date: Tue, 7 Oct 2014 11:21:44 -0700 Subject: [PATCH] Allow the ID to be a number. --- src/EventManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/EventManager.js b/src/EventManager.js index 3c8c813..2c0109a 100644 --- a/src/EventManager.js +++ b/src/EventManager.js @@ -522,6 +522,10 @@ function EventManager(options) { // assumed to be a calendar } if (out.resources) { + if (typeof out.resources == 'number') { + out.resources = [out.resources]; + } + if (typeof out.resources == 'string') { out.resources = out.resources.split(/\s+/); }