mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-07-10 08:29:17 +00:00
[fix] should execute the binded function
This commit is contained in:
4
http.js
4
http.js
@@ -35,7 +35,7 @@ Http.prototype.addEventListener = function(e, f) {
|
||||
req.open(this.http._method, this.http._url);
|
||||
req.send();
|
||||
} else {
|
||||
f.bind(this);
|
||||
f.bind(this)();
|
||||
}
|
||||
});
|
||||
break;
|
||||
@@ -43,7 +43,7 @@ Http.prototype.addEventListener = function(e, f) {
|
||||
default:
|
||||
{
|
||||
self.oReq.addEventListener(e, function() {
|
||||
f.bind(this);
|
||||
f.bind(this)();
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user