Sha256: c6862fc654f3fb276dc02e3bb947d53ebdd0768c01b4d766aebd20a58ff43762

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2009 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
sc_require("resources/picker/popover/popover");

SC.AceTheme.Popover.pickerRenderDelegate = SC.RenderDelegate.create({
  name: 'picker',
  
  render: function(dataSource, context) {
    var preferType = dataSource.get('preferType');
    var pointerPosition = dataSource.get('pointerPos');
    var pointerPositionY = dataSource.get('pointerPosY');

    if (preferType == SC.PICKER_POINTER || preferType == SC.PICKER_MENU_POINTER) {
      context.addClass(pointerPosition);
    }
  },
  
  update: function(dataSource, $) {
    var preferType = dataSource.get('preferType');
    var pointerPosition = dataSource.get('pointerPos');
    var pointerPositionY = dataSource.get('pointerPosY');
    
    if (preferType == SC.PICKER_POINTER || preferType == SC.PICKER_MENU_POINTER) {
      $.addClass(pointerPosition);
    }
    
  }
});

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/themes/ace/resources/picker/popover/picker.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js