apps/browser/js/browser.js
// that a new tab has been created
that a new tab has been created
that a new tab has been created
function browser_showNewTab(showTabCompleteFun) {
    var ul = this.tabsList.childNodes[0];
    var li = document.createElement('li');
    li.innerHTML = '<a><img /><span>' + _('new-tab') + '</span></a>';
    li.style.height = '0px';
    li.style.transition = 'height 0.2s ease-in';
    ul.insertBefore(li, ul.childNodes[0]);
    li.addEventListener('transitionend', function() {
      setTimeout(showTabCompleteFun, 100);
    });
    li.clientTop;
    li.style.height = '';
  }
function browser_showNewTab ( showTabCompleteFun ) { var ul = this . tabsList . childNodes [ 0 ] ; var li = document . createElement ( 'li' ) ; li . innerHTML = '<a><img /><span>' + _ ( 'new-tab' ) + '</span></a>' ; li . style . height = '0px' ; li . style . transition = 'height 0.2s ease-in' ; ul . insertBefore ( li , ul . childNodes [ 0 ] ) ; li . addEventListener ( 'transitionend' , function ( ) { setTimeout ( showTabCompleteFun , 100 ) ; } ) ; li . clientTop ; li . style . height = '' ; }
that a new tab has been created
that a new tab has been created
// Pause so the user has time to see the new tab // Hack to force transition to apply synchronously // http://lists.w3.org/Archives/Public/www-style/2011Mar/0729.html