Skip to content

Commit db41bca

Browse files
committed
Fix a bug in request
I have no idea how this was working before
1 parent 3c325a2 commit db41bca

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

static/rustw.out.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,8 @@ function highlight_spans(highlight, line_number_prefix, src_line_prefix, css_cla
957957
// Only supply the `app` argument if you want to show loading/error messages
958958
// in the main content panel.
959959
function request(urlStr, success, errStr, app) {
960-
var self = this;
961960
$.ajax({
962-
url: self.make_url(urlStr),
961+
url: make_url(urlStr),
963962
type: 'POST',
964963
dataType: 'JSON',
965964
cache: false

static/rustw.out.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ export function highlight_spans(highlight, line_number_prefix, src_line_prefix,
6868
// Only supply the `app` argument if you want to show loading/error messages
6969
// in the main content panel.
7070
export function request(urlStr, success, errStr, app) {
71-
const self = this;
7271
$.ajax({
73-
url: self.make_url(urlStr),
72+
url: make_url(urlStr),
7473
type: 'POST',
7574
dataType: 'JSON',
7675
cache: false

0 commit comments

Comments
 (0)