mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
27 lines
619 B
JavaScript
27 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);
|
||
|
};
|