Merge pull request #79 from gregmac/patch-1

Fix for #54
This commit is contained in:
Ayush Gupta
2012-11-14 21:53:52 -08:00
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Swagger UI</title>

View File

@@ -65,7 +65,15 @@ function clippyCopiedCallback(a) {
function log() {
if (window.console) console.log.apply(console,arguments);
}
// Handle browsers that do console incorrectly (IE9 and below, see http://stackoverflow.com/a/5539378/7913)
if (Function.prototype.bind && console && typeof console.log == "object") {
[
"log","info","warn","error","assert","dir","clear","profile","profileEnd"
].forEach(function (method) {
console[method] = this.bind(console[method], console);
}, Function.prototype.call);
}
var Docs = {
shebang: function() {