mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
26 lines
619 B
JavaScript
26 lines
619 B
JavaScript
'use strict';
|
|
|
|
var oldItemViewRender = Marionette.ItemView.prototype.render;
|
|
var oldItemCollectionViewRender = Marionette.CollectionView.prototype.render;
|
|
|
|
Marionette.ItemView.prototype.render = function () {
|
|
|
|
if (this.model) {
|
|
NzbDrone.ModelBinder.bind(this.model, this.el);
|
|
}
|
|
|
|
console.log("render");
|
|
|
|
return oldItemViewRender.apply(this, arguments);
|
|
};
|
|
|
|
Marionette.CollectionView.prototype.render = function () {
|
|
|
|
if (this.model) {
|
|
NzbDrone.ModelBinder.bind(this.model, this.el);
|
|
}
|
|
|
|
console.log("render");
|
|
|
|
return oldItemCollectionViewRender.apply(this, arguments);
|
|
};
|