bugfix: create angular module correctly

This commit is contained in:
deltreey
2015-08-13 23:18:12 -04:00
parent 118e9b9c4c
commit b5539d5c59

View File

@@ -173,5 +173,5 @@ var wildstring = {
};
if (typeof(module) !== 'undefined') { module.exports = wildstring; }
if (typeof(angular) !== 'undefined') { angular.module('wildstring').factory = wildstring; }
if (typeof(angular) !== 'undefined') { angular.module('wildstring', []).factory = wildstring; }
if (typeof(define) !== 'undefined') { define([], wildstring); }