client/js/renderer/baseeditor.js
changeset 433 e457ec945e50
parent 293 fba23fde14ba
child 434 0d5998b32a7c
--- a/client/js/renderer/baseeditor.js	Fri Apr 24 18:02:09 2015 +0200
+++ b/client/js/renderer/baseeditor.js	Sat Apr 25 04:13:53 2015 +0200
@@ -13,7 +13,7 @@
             this.renderer.buttons_layer.activate();
             this.type = "editor";
             this.editor_block = new paper.Path();
-            var _pts = _(_.range(8)).map(function() {return [0,0];});
+            var _pts = _.map(_.range(8), function() {return [0,0];});
             this.editor_block.add.apply(this.editor_block, _pts);
             this.editor_block.strokeWidth = this.options.tooltip_border_width;
             this.editor_block.strokeColor = this.options.tooltip_border_color;
@@ -30,7 +30,8 @@
             this.editor_block.remove();
             this.editor_$.remove();
         }
-    });
+    }).value();
+//    });
 
     /* _BaseEditor End */