       assert.deepEqual(events, ['command'])
 
     it "simulates bubbling if the target is detached", ->
-      elementA = $$ ->
-        @div class: 'a', ->
-          @div class: 'b', ->
-            @div class: 'c'
+      elementA = $$(->
+        @div { 'class': 'a' }, ->
+          @div { 'class': 'b' }, ->
+            @div 'class': 'c'
+      )
       elementB = elementA.firstChild
       elementC = elementB.firstChild
 

      assert.deepEqual(events, ['command'])

    it "allows solo modifier-keys to be bound", ->
      element = $$ -> @div class: 'a'
      keymapManager.add 'test', '.a': 'ctrl': 'command'
      events = []
      element.addEventListener 'command', -> events.push('command')

      assert.deepEqual(events, ['command-b'])

    it "does not enqueue keydown events consisting only of modifier keys", ->
      element = $$(->
        @div 'class': 'a'
      )
      keymapManager.add 'test', '.a': 'ctrl-a ctrl-alt-b': 'command'
      events = []
      element.addEventListener 'command', -> events.push('command')
