bugfix: create angular module correctly
This commit is contained in:
@@ -173,5 +173,5 @@ var wildstring = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof(module) !== 'undefined') { module.exports = 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); }
|
if (typeof(define) !== 'undefined') { define([], wildstring); }
|
||||||
|
|||||||
Reference in New Issue
Block a user