mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 15:39:54 +03:00
[fix] should execute the binded function
This commit is contained in:
parent
0c0846d406
commit
ada12fd0f9
1 changed files with 2 additions and 2 deletions
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue