Wrap all SwaggerUI code in a iife

to avoid leaking globals other than SwaggerUi and swaggerUi

TODO: we should remove swaggerUi global dependency too
This commit is contained in:
Mohsen Azimi
2015-03-12 17:51:44 -07:00
parent 465436a162
commit 4e22ff8b96
3 changed files with 5 additions and 4 deletions

4
dist/swagger-ui.js vendored
View File

@@ -4,7 +4,7 @@
* @link http://swagger.io
* @license Apache 2.0
*/
'use strict';
(function(){'use strict';
window.SwaggerUi = Backbone.Router.extend({
@@ -2185,4 +2185,4 @@ SwaggerUi.Views.StatusCodeView = Backbone.View.extend({
}
return this;
}
});
});}).call(this);