minor fix
authorveltr
Thu, 13 Jun 2013 16:13:35 +0200
changeset 193 7d95ace8c08f
parent 192 47aa37d3e750
child 194 f53a7999ae7b
minor fix
client/js/paper-renderer.js
--- a/client/js/paper-renderer.js	Thu Jun 13 14:31:35 2013 +0200
+++ b/client/js/paper-renderer.js	Thu Jun 13 16:13:35 2013 +0200
@@ -112,8 +112,8 @@
 };
 
 Rkns._(_BaseRepresentation.prototype).extend({
-    super: function(_func) {
-        _BaseRepresentation.prototype[_func].apply(this, Array.prototype.slice.call(arguments, 1));
+    _super: function(_func) {
+        return _BaseRepresentation.prototype[_func].apply(this, Array.prototype.slice.call(arguments, 1));
     },
     redraw: function() {},
     moveTo: function() {},
@@ -484,7 +484,7 @@
         this.minimap_circle.strokeWidth = this.options.minimap_highlight_weight;
         this.minimap_circle.strokeColor = this.options.minimap_highlight_color;
     }
-    this.super("select");
+    this._super("select");
 },
 unselect: function(_newTarget) {
     if (!_newTarget || _newTarget.source_representation !== this) {
@@ -497,7 +497,7 @@
         if (this.renderer.minimap) {
             this.minimap_circle.strokeColor = undefined;
         }
-        this.super("unselect");
+        this._super("unselect");
     }
 },
 highlight: function() {
@@ -548,7 +548,7 @@
     this.is_dragging = false;
 },
 destroy: function(_event) {
-    this.super("destroy");
+    this._super("destroy");
     this.all_buttons.forEach(function(b) {
         b.destroy();
     });
@@ -722,7 +722,7 @@
     if (!this.options.editor_mode) {
         this.openEditor();
     }
-    this.super("select");
+    this._super("select");
 },
 unselect: function(_newTarget) {
     if (!_newTarget || _newTarget.source_representation !== this) {
@@ -733,7 +733,7 @@
             });
         }
         this.line.strokeWidth = this.options.edge_stroke_width;
-        this.super("unselect");
+        this._super("unselect");
     }
 },
 mousedown: function(_event, _isTouch) {
@@ -768,7 +768,7 @@
     }
 },
 destroy: function() {
-    this.super("destroy");
+    this._super("destroy");
     this.line.remove();
     this.arrow.remove();
     this.text.remove();
@@ -2488,7 +2488,7 @@
         this.notif_$.hide();
     } else {
         this.click_mode = _CLICKMODE_ADDNODE;
-        this.notif_$.text(_renkan.translate("Click on the background canvas to add a node")).fadeIn();
+        this.notif_$.text(this.renkan.translate("Click on the background canvas to add a node")).fadeIn();
     }
     return false;
 },
@@ -2498,7 +2498,7 @@
         this.notif_$.hide();
     } else {
         this.click_mode = _CLICKMODE_STARTEDGE;
-        this.notif_$.text(_renkan.translate("Click on a first node to start the edge")).fadeIn();
+        this.notif_$.text(this.renkan.translate("Click on a first node to start the edge")).fadeIn();
     }
     return false;
 },