mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Remove jquery from BrowseLocalController.js
This commit is contained in:
parent
e5e85f67c2
commit
45d2245346
@ -11,12 +11,11 @@
|
|||||||
this.localStorageItemTemplate_ = pskl.utils.Template.get('local-storage-item-template');
|
this.localStorageItemTemplate_ = pskl.utils.Template.get('local-storage-item-template');
|
||||||
|
|
||||||
this.service_ = pskl.app.indexedDbStorageService;
|
this.service_ = pskl.app.indexedDbStorageService;
|
||||||
this.piskelList = $('.local-piskel-list');
|
this.piskelList = document.querySelector('.local-piskel-list');
|
||||||
this.prevSessionContainer = $('.previous-session');
|
|
||||||
|
|
||||||
this.fillLocalPiskelsList_();
|
this.fillLocalPiskelsList_();
|
||||||
|
|
||||||
this.piskelList.click(this.onPiskelsListClick_.bind(this));
|
this.piskelList.addEventListener('click', this.onPiskelsListClick_.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.BrowseLocalController.prototype.onPiskelsListClick_ = function (evt) {
|
ns.BrowseLocalController.prototype.onPiskelsListClick_ = function (evt) {
|
||||||
@ -52,7 +51,7 @@
|
|||||||
});
|
});
|
||||||
}).bind(this));
|
}).bind(this));
|
||||||
|
|
||||||
var tableBody_ = this.piskelList.get(0).tBodies[0];
|
var tableBody_ = this.piskelList.tBodies[0];
|
||||||
tableBody_.innerHTML = html;
|
tableBody_.innerHTML = html;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user