]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick: v0.3.4
authorCheng Zhao <zcbenz@gmail.com>
Thu, 15 Aug 2013 09:50:30 +0000 (17:50 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 15 Aug 2013 09:50:30 +0000 (17:50 +0800)
browser/api/lib/menu-item.coffee

index b94fdf628534757c2599856b963f958c36e08fb8..02f863886e42576df4127b03000484a28cd9230c 100644 (file)
@@ -27,7 +27,7 @@ class MenuItem
     @click = =>
       if typeof click is 'function'
         click.apply this, arguments
-      else if typeof selector is 'string'
-        Menu.sendActionToFirstResponder selector
+      else if typeof @selector is 'string'
+        Menu.sendActionToFirstResponder @selector
 
 module.exports = MenuItem