                         tab.classList.add 'pinned'
                     else if state.indexOf(info.itemURI) >= 0
                         tab.classList.add 'pinned'
-            ), 1
+        ), 1
 
     serialize: ->
         @PinnedTabsState.serialize()

    pin: (e) ->
        return unless info = @getTabInformation e

        if info.tabIsPinned
            index = @PinnedTabsState.data.indexOf info.itemId
            @PinnedTabsState.data.splice(index, 1) if index >= 0
            info.pane.moveItem(info.item, info.unpinIndex)

            @PinnedTabsState.data.push info.itemId
            info.pane.moveItem(info.item, info.pinIndex)

        setTimeout (-> e.classList.toggle 'pinned'), 1

    getTabInformation: (e) ->
        return if e == null
