Untangle the callbacks; Add linkable diff tabs.
[redakcja.git] / src / redakcja / static / js / wiki / view_properties.js
index 35d0069..5c4c0e8 100644 (file)
     };
 
     class PropertiesPerspective extends $.wiki.SidebarPerspective {
-        constructor(options) {
-            let oldCallback = options.callback || function() {};
+        vsplitbar = 'WŁAŚCIWOŚCI';
 
-            options.callback = function() {
+        constructor(options) {
+            super(options);
                 let self = this;
 
-                self.vsplitbar = 'WŁAŚCIWOŚCI';
                 self.$pane = $("#side-properties");
 
                 $("#simple-editor").on('click', '[x-node]', function(e) {
                 self.$pane.on('click', '#current-delete', function() {
                     self.delete();
                 });
-
-                oldCallback.call(this);
-            };
-
-            super(options);
         }
 
         edit(element) {