From 6f13697870c58d58b1e39d7b528fe08e0024320c Mon Sep 17 00:00:00 2001 From: Nikolai Onken Date: Thu, 6 Aug 2015 12:50:41 +0000 Subject: [PATCH] Guard --- plugins/c9.vfs.standalone/www/test.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/c9.vfs.standalone/www/test.html b/plugins/c9.vfs.standalone/www/test.html index 11d99d24..a3927244 100644 --- a/plugins/c9.vfs.standalone/www/test.html +++ b/plugins/c9.vfs.standalone/www/test.html @@ -363,7 +363,9 @@ if (require == requirejs) { require = function(a, b, c) { if (!c && Array.isArray(a)) - c = function(err) { lastDone(err.message); }; + c = function(err) { + lastDone && lastDone(err.message); + }; return requirejs(a, b, c); }; Object.keys(requirejs).forEach(function(x) {