diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-14 10:37:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-14 10:37:39 -0700 |
commit | 1ddb637687e685a7aa17853e3327ceae88e40547 (patch) | |
tree | 103f966cd058c0ac1ef6a335cf702c9d4165c5d8 | |
parent | f450405e52d801c0e7b4ac41860a0fb717e2190e (diff) |
do not show spurious warnings about missing library deps
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 20d1ea3b..f638ea08 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -408,7 +408,7 @@ function JSify(data, functionsOnly, givenFunctions) { var redirectedIdent = null; var deps = LibraryManager.library[ident + '__deps'] || []; deps.forEach(function(dep) { - if (!(dep in LibraryManager.library)) warn('missing library dependency ' + dep + ', make sure you are compiling with the right options (see #ifdefs in src/library*.js)'); + if (typeof snippet === 'string' && !(dep in LibraryManager.library)) warn('missing library dependency ' + dep + ', make sure you are compiling with the right options (see #ifdefs in src/library*.js)'); }); var isFunction = false; |