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 $('#' + this.base_id).remove();
23 $('#' + this.perspective_id).remove();
26 DiffPerspective.prototype.onEnter = function(success, failure){
27 $.wiki.Perspective.prototype.onEnter.call(this);
28 console.log("Entered diff view");
31 $.wiki.DiffPerspective = DiffPerspective;