3 function DiffPerspective(options) {
4 var old_callback = options.callback || function() {};
7 options.callback = function(){
8 self.base_id = options.base_id;
9 old_callback.call(this);
12 $.wiki.Perspective.call(this, options);
15 DiffPerspective.prototype = new $.wiki.Perspective();
17 DiffPerspective.prototype.freezeState = function(){
21 DiffPerspective.prototype.destroy = function() {
22 $.wiki.switchToTab('#HistoryPerspective');
23 $('#' + this.base_id).remove();
24 $('#' + this.perspective_id).remove();
27 DiffPerspective.prototype.onEnter = function(success, failure){
28 $.wiki.Perspective.prototype.onEnter.call(this);
29 console.log("Entered diff view");
32 $.wiki.DiffPerspective = DiffPerspective;