equal
deleted
inserted
replaced
58 } |
58 } |
59 }); |
59 }); |
60 |
60 |
61 if (this.renderer.isEditable()) { |
61 if (this.renderer.isEditable()) { |
62 |
62 |
63 var onFieldChange = _.throttle(function() { |
63 var onFieldChange = _.debounce(function() { |
64 _.defer(function() { |
64 _.defer(function() { |
65 if (_this.renderer.isEditable()) { |
65 if (_this.renderer.isEditable()) { |
66 var _data = { |
66 var _data = { |
67 title: _this.editor_$.find(".Rk-Edit-Title").val() |
67 title: _this.editor_$.find(".Rk-Edit-Title").val() |
68 }; |
68 }; |
79 paper.view.draw(); |
79 paper.view.draw(); |
80 } else { |
80 } else { |
81 closeEditor(); |
81 closeEditor(); |
82 } |
82 } |
83 }); |
83 }); |
84 },500); |
84 },1000); |
85 |
85 |
86 this.editor_$.on("keyup", function(_e) { |
86 this.editor_$.on("keyup", function(_e) { |
87 if (_e.keyCode === 27) { |
87 if (_e.keyCode === 27) { |
88 closeEditor(); |
88 closeEditor(); |
89 } |
89 } |