1 // ==========================================================================
  2 // Project:   SproutCore - JavaScript Application Framework
  3 // Copyright: ©2006-2011 Strobe Inc. and contributors.
  4 //            Portions ©2008-2011 Apple Inc. All rights reserved.
  5 // License:   Licensed under MIT license (see license.js)
  6 // ==========================================================================
  7 
  8 
  9 /**
 10   Border between the two panes of the MasterDetail.
 11 
 12   Note that the border does *NOT* include any space on the sides. Space
 13   on left or right sides of MasterDetail, if any, should be handled by
 14   its layout.
 15  */
 16 SC.BaseTheme.MASTER_DETAIL_DIVIDER_WIDTH = 1;
 17 
 18 SC.BaseTheme.masterDetailRenderDelegate = SC.RenderDelegate.create({
 19   className: 'master-detail',
 20   dividerWidth: 1,
 21   
 22   render: function(dataSource, context) {
 23     context.setClass('round-toolbars', SC.platform.touch);
 24   },
 25   
 26   update: function(dataSource, jquery) {
 27     jquery.setClass('round-toolbars', SC.platform.touch);    
 28   }
 29   
 30 });
 31