# HG changeset patch # User veltr # Date 1371132815 -7200 # Node ID 7d95ace8c08fbe5607bf9cce6030cc74549323f2 # Parent 47aa37d3e7504d85d92afa38e57e58a1307e6bba minor fix diff -r 47aa37d3e750 -r 7d95ace8c08f 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; },