diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/CompilationErrorPage.cs b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/CompilationErrorPage.cs index 2f28948651..69c0442405 100644 --- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/CompilationErrorPage.cs +++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/CompilationErrorPage.cs @@ -360,7 +360,7 @@ WriteAttributeValue("", 2677, frame.Line + 1, 2677, 17, false); #line default #line hidden - WriteLiteral(" \r\n \r\n\r\n"); } #pragma warning restore 1998 diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs index 0bb27e160e..c1ecb7e01b 100644 --- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs +++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs @@ -815,7 +815,7 @@ WriteAttributeValue("", 5155, frame.Line + 1, 5155, 17, false); #line default #line hidden - WriteLiteral(" \r\n \r\n \r\n\r\n"); + WriteLiteral(" \r\n \r\n \r\n\r\n"); } #pragma warning restore 1998 } diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.js b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.js index 3435b6322c..fc19e26148 100644 --- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.js +++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.js @@ -1,7 +1,7 @@ (function (window, undefined) { "use strict"; - function $(selector, element) { + function ns(selector, element) { return new NodeCollection(selector, element); } @@ -16,10 +16,6 @@ for (var i = 0, l = nodeList.length; i < l; i++) { this.items.push(nodeList.item(i)); } - } else if (selector.tagName) { - this.items.push(selector); - } else if (selector.splice) { - this.items = this.items.concat(selector); } } @@ -35,10 +31,10 @@ var children = []; this.each(function (el) { - children = children.concat($(selector, el).items); + children = children.concat(ns(selector, el).items); }); - return $(children); + return ns(children); }, hide: function () { @@ -101,19 +97,6 @@ return this; }, - toggleClass: function (className) { - this.each(function (el) { - var classNames = el.className.split(" "); - if (classNames.indexOf(className) >= 0) { - $(el).removeClass(className); - } else { - $(el).addClass(className); - } - }); - - return this; - }, - attr: function (name) { if (this.items.length === 0) { return null; @@ -154,22 +137,22 @@ }; function frame(el) { - $(el).children(".source .collapsible").toggle(); + ns(el).children(".source .collapsible").toggle(); } function tab(el) { - var unselected = $("#header .selected").removeClass("selected").attr("id"); - var selected = $(el).addClass("selected").attr("id"); + var unselected = ns("#header .selected").removeClass("selected").attr("id"); + var selected = ns(el).addClass("selected").attr("id"); - $("#" + unselected + "page").hide(); - $("#" + selected + "page").show(); + ns("#" + unselected + "page").hide(); + ns("#" + selected + "page").show(); } - $(".collapsible").hide(); - $(".page").hide(); - $("#stackpage").show(); + ns(".collapsible").hide(); + ns(".page").hide(); + ns("#stackpage").show(); - $("#rawExceptionButton").click(function (event) { + ns("#rawExceptionButton").click(function (event) { var div = document.getElementById('rawException'); div.style.display = 'inline-block'; div.scrollIntoView(true); @@ -179,7 +162,7 @@ return false; }); - $(".frame") + ns(".frame") .click(function () { frame(this); }) @@ -189,7 +172,7 @@ } }); - $("#header li") + ns("#header li") .click(function () { tab(this); })