From 13f5eb48a7eb4173f390b794fe75b1cd870f1e69 Mon Sep 17 00:00:00 2001 From: gjcoombes Date: Wed, 11 Nov 2015 15:15:55 +0800 Subject: [PATCH] Remove reference to applitude and test for app. I had a similar error to issue #41, and found these changes to ```./dist/browser-cuid.js``` fixed it for me. It wasn't obvious where these files were generated, so I kept the direct changes. --- dist/browser-cuid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/browser-cuid.js b/dist/browser-cuid.js index 94bf229..48e947d 100644 --- a/dist/browser-cuid.js +++ b/dist/browser-cuid.js @@ -99,7 +99,7 @@ }; // don't change anything from here down. - if (app.register) { + if (app && app.register) { app.register(namespace, api); } else if (typeof module !== 'undefined') { module.exports = api; @@ -107,4 +107,4 @@ app[namespace] = api; } -}(this.applitude || this)); +}(this));