Some modernizations.
[redakcja.git] / src / redakcja / static / js / wiki / view_column_diff.js
1 (function($){
2
3     class DiffPerspective extends $.wiki.Perspective {
4         constructor(options) {
5             var old_callback = options.callback || function() {};
6
7             options.callback = function() {
8                 var self = this;
9                 self.base_id = options.base_id;
10                 old_callback.call(this);
11             };
12             super(options);
13         }
14
15         freezeState() {
16             // must
17         };
18
19         destroy() {
20             $.wiki.switchToTab('#HistoryPerspective');
21             $('#' + this.base_id).remove();
22             $('#' + this.perspective_id).remove();
23         }
24     }
25     $.wiki.DiffPerspective = DiffPerspective;
26
27 })(jQuery);
28