fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: gutter comments - refactoring and clean up
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
gutter.js
diff --git
a/src/editor/modules/documentCanvas/canvas/gutter.js
b/src/editor/modules/documentCanvas/canvas/gutter.js
index
a382871
..
b6bd665
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/gutter.js
+++ b/
src/editor/modules/documentCanvas/canvas/gutter.js
@@
-46,7
+46,6
@@
var GutterGroupView = function(gutterView, group) {
$.extend(GutterGroupView.prototype, {
remove: function() {
this.group.off('viewAdded', this.onViewAdded);
$.extend(GutterGroupView.prototype, {
remove: function() {
this.group.off('viewAdded', this.onViewAdded);
- this.group.off('offsetChange', this.onOffsetChange);
this.group.off('focusToggled', this.onFocusToggled);
this.dom.detach();
},
this.group.off('focusToggled', this.onFocusToggled);
this.dom.detach();
},
@@
-79,10
+78,6
@@
$.extend(ViewGroup.prototype, Backbone.Events, {
getOffsetHint: function() {
return _.isFunction(this.params.offsetHint) ? this.params.offsetHint() : this.params.offsetHint;
},
getOffsetHint: function() {
return _.isFunction(this.params.offsetHint) ? this.params.offsetHint() : this.params.offsetHint;
},
- setOffset: function(offset) {
- this.trigger('offsetChange', offset);
- this._offset = offset;
- },
addView: function(view) {
this.views.push(view);
this.trigger('viewAdded', view);
addView: function(view) {
this.views.push(view);
this.trigger('viewAdded', view);