From bc7afc1f1fc8811247eaaa1eb0309c46f2360e47 Mon Sep 17 00:00:00 2001 From: AJ Ortega Date: Thu, 5 Mar 2015 10:48:32 -0800 Subject: [PATCH] Fix error calling .split on undefined. --- webcomponents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcomponents.js b/webcomponents.js index 2d090df..8112c73 100644 --- a/webcomponents.js +++ b/webcomponents.js @@ -34,7 +34,7 @@ } } // log flags - if (flags.log) { + if (flags.log && flags.log.split) { var parts = flags.log.split(','); flags.log = {}; parts.forEach(function(f) {