Skip to content

Commit 663fc27

Browse files
authored
Merge pull request #1273 from jdufresne/lower
Remove unnecessary .toLowerCase() operation
2 parents 672de79 + 34b0808 commit 663fc27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@
108108
$$.on(djDebug, 'click', '.remoteCall', function(event) {
109109
event.preventDefault();
110110

111-
var name = this.tagName.toLowerCase();
112111
var ajax_data = {};
113112

114-
if (name == 'button') {
113+
if (this.tagName == 'BUTTON') {
115114
var form = this.closest('form');
116115
ajax_data.url = this.getAttribute('formaction');
117116

@@ -121,7 +120,7 @@
121120
}
122121
}
123122

124-
if (name == 'a') {
123+
if (this.tagName == 'A') {
125124
ajax_data.url = this.getAttribute('href');
126125
}
127126

0 commit comments

Comments
 (0)