Skip to content

Commit

Permalink
MDL-42393 calendar: Preventing open/close loop in events overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Jul 1, 2014
1 parent 7a4832e commit 23a2d6f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Y.extend(EVENT, Y.Base, {
}
},
startShow : function() {
this.cancelHide();
if (this.get(SHOWTIMEOUT) !== null) {
this.cancelShow();
}
Expand All @@ -82,6 +83,7 @@ Y.extend(EVENT, Y.Base, {
this.fire('showevent');
},
startHide : function() {
this.cancelShow();
if (this.get(HIDETIMEOUT) !== null) {
this.cancelHide();
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Y.extend(EVENT, Y.Base, {
}
},
startShow : function() {
this.cancelHide();
if (this.get(SHOWTIMEOUT) !== null) {
this.cancelShow();
}
Expand All @@ -82,6 +83,7 @@ Y.extend(EVENT, Y.Base, {
this.fire('showevent');
},
startHide : function() {
this.cancelShow();
if (this.get(HIDETIMEOUT) !== null) {
this.cancelHide();
}
Expand Down
2 changes: 2 additions & 0 deletions calendar/yui/src/eventmanager/js/eventmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Y.extend(EVENT, Y.Base, {
}
},
startShow : function() {
this.cancelHide();
if (this.get(SHOWTIMEOUT) !== null) {
this.cancelShow();
}
Expand All @@ -80,6 +81,7 @@ Y.extend(EVENT, Y.Base, {
this.fire('showevent');
},
startHide : function() {
this.cancelShow();
if (this.get(HIDETIMEOUT) !== null) {
this.cancelHide();
}
Expand Down

0 comments on commit 23a2d6f

Please sign in to comment.