             $tab = $ @
             $tab.unbind('click').click ->
 
-                $shell.tabEmitter.emit 'tab-click',  $tab.uuid
-
+                $shell.tabEmitter.emit 'tab-click',  $tab
                 chromeTabs.setCurrentTab $shell, $tab
 
             $tab.find('.chrome-tab-close').unbind('click').click ->


                chromeTabs.closeTab $shell, $tab

    addNewTab: ($shell, newTabData) ->
        $newTab = $ tabTemplate
        $newTab.uuid =  uuid.v4()
        $shell.find('.chrome-tabs').append $newTab
        tabData = $.extend true, {}, defaultNewTabData, newTabData
        chromeTabs.updateTab $shell, $newTab, tabData

# if document.body.style['-webkit-mask-repeat'] isnt undefined
#     $('html').addClass('cssmasks')
# else


$('html').addClass('cssmasks')

