removed AMD 'define' call, since when bundled with other modules, only the first define() call actually registers the module (which would be one of the dependencies)

This commit is contained in:
Dima_Ryskin
2016-04-24 16:09:16 +03:00
parent f18825d226
commit 08b5fd058b
3 changed files with 1 additions and 26 deletions

17
dist/xss.js vendored
View File

@@ -442,14 +442,6 @@ for (var i in DEFAULT) exports[i] = DEFAULT[i];
for (var i in parser) exports[i] = parser[i];
// 在AMD下使用
if (typeof define === 'function' && define.amd) {
define(function () {
return module.exports;
});
}
// 在浏览器端使用
if (typeof window !== 'undefined') {
window.filterXSS = module.exports;
@@ -1426,15 +1418,6 @@ exports = module.exports = filterCSS;
exports.FilterCSS = FilterCSS;
for (var i in DEFAULT) exports[i] = DEFAULT[i];
// 在AMD下使用
if (typeof define === 'function' && define.amd) {
define(function () {
return module.exports;
});
}
// 在浏览器端使用
if (typeof window !== 'undefined') {
window.filterCSS = module.exports;

2
dist/xss.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -29,14 +29,6 @@ for (var i in DEFAULT) exports[i] = DEFAULT[i];
for (var i in parser) exports[i] = parser[i];
// 在AMD下使用
if (typeof define === 'function' && define.amd) {
define(function () {
return module.exports;
});
}
// 在浏览器端使用
if (typeof window !== 'undefined') {
window.filterXSS = module.exports;