From 31bc54a4e641509c894aa641415a74032996c327 Mon Sep 17 00:00:00 2001 From: deltreey Date: Sun, 9 Aug 2015 18:58:53 -0400 Subject: [PATCH] this is not defined in angular --- wildstring.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wildstring.js b/wildstring.js index 7479270..466c75d 100644 --- a/wildstring.js +++ b/wildstring.js @@ -1,14 +1,17 @@ 'use strict'; -(function (root, definition) { +var wildstring = (function (name, definition) { if (typeof(module) !== 'undefined') { module.exports = definition(); } else if (typeof(define) === 'function' && typeof(define.amd) === 'object') { define(definition); } + else if (typeof(this) !== 'undefined') { + this[name] = definition(); + } else { - this['wildstring'] = definition(); + return definition(); } }('wildstring', function () {