Skip to content

Commit

Permalink
selection bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Forrest Oliphant committed Apr 20, 2012
1 parent b32fa60 commit 3cf522b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion iframework-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/iframework-graph-view.js
Expand Up @@ -56,10 +56,10 @@ $(function(){
edge.view.remove();
}

if (edge.source.view) {
if (edge.source && edge.source.view) {
edge.source.view.resetRelatedEdges();
}
if (edge.target.view) {
if (edge.target && edge.target.view) {
edge.target.view.resetRelatedEdges();
}
},
Expand Down
2 changes: 1 addition & 1 deletion js/iframework-node-view.js
Expand Up @@ -47,7 +47,7 @@ $(function(){
.button({ icons: { primary: "ui-icon-trash" }, text: false });

// Disable selection for better drag+drop
$(this.el).disableSelection();
this.$("h1").disableSelection();

},
render: function () {
Expand Down
4 changes: 3 additions & 1 deletion js/iframework-port-view.js
Expand Up @@ -102,6 +102,9 @@ $(function(){
});

this.$(".plugend").hide();

// Disable selection for better drag+drop
this.$(".portshown").disableSelection();

},
dragstart: function (event, ui) {
Expand Down Expand Up @@ -396,7 +399,6 @@ $(function(){

// This input's options
if (this.model.get("options") && this.model.get("options").length > 0) {
console.log(this.model.get("options"));
this.$('input').autocomplete({
minLength: 0,
source: this.model.get("options"),
Expand Down

0 comments on commit 3cf522b

Please sign in to comment.