Skip to content

Commit

Permalink
Handle same as previous commit's jquery-backbone-binding-fail with st…
Browse files Browse the repository at this point in the history
…andard event binding in list of pairs collection builder.
  • Loading branch information
dannon committed Oct 30, 2017
1 parent 1ccb404 commit a4b9e31
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
Expand Up @@ -46,17 +46,28 @@ currPanel.once( 'rendered', function(){
),

render: function() {
this.$el
this.dragStartHandler = _.bind(this._dragstart, this);
this.dragEndHandler = _.bind(this._dragend, this);
var handle = this.$el
.attr("draggable", true)
.data("pair", this.pair)
.html(this.template({ pair: this.pair }))
.addClass("flex-column-container");
.addClass("flex-column-container")
.get(0);
handle.addEventListener(
"dragstart",
this.dragStartHandler,
false
);
handle.addEventListener(
"dragend",
this.dragEndHandler,
false
);
return this;
},

events: {
dragstart: "_dragstart",
dragend: "_dragend",
dragover: "_sendToParent",
drop: "_sendToParent"
},
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit a4b9e31

Please sign in to comment.