Permalink
Browse files

fix bubble

  • Loading branch information...
1 parent 7e9fa40 commit 05da4d22d4c2c99f82d645254b183ad916170372 @ofl committed Mar 30, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 coffee/ui/Detail.coffee
  2. +1 −1 coffee/ui/FloatWindow.coffee
  3. +1 −1 coffee/ui/Menu.coffee
  4. +2 −2 coffee/ui/Window.coffee
View
@@ -47,7 +47,7 @@ class Detail
view.fireEvent 'bubble',
btype: type
boptions: options || {}
- bpropagation: propagation || true
+ bpropagation: typeof propagation == 'undefined' && true || propagation
bsource: source || mod
return
@@ -47,7 +47,7 @@ class Window
window.fireEvent 'bubble',
btype: type
boptions: options || {}
- bpropagation: propagation || true
+ bpropagation: typeof propagation == 'undefined' && true || propagation
bsource: source || mod
return
View
@@ -47,7 +47,7 @@ class Menu
view.fireEvent 'bubble',
btype: type
boptions: options || {}
- bpropagation: propagation || true
+ bpropagation: typeof propagation == 'undefined' && true || propagation
bsource: source || mod
return
View
@@ -53,7 +53,7 @@ class Window
window.fireEvent 'bubble',
btype: type
boptions: options || {}
- bpropagation: propagation || true
+ bpropagation: typeof propagation == 'undefined' && true || propagation
bsource: source || mod
return
@@ -73,7 +73,7 @@ class Window
_toggleMenu 'right', floatWindow.isOpened
if e.bpropagation
- _bubble e.btype, e.boptions, true, e.source
+ _bubble e.btype, e.boptions, true, e.bsource
return
_toggleMenu = (direction, isOpened)->

0 comments on commit 05da4d2

Please sign in to comment.