Sha256: 2ab1b0cb93aab5d8512b37b2277b2ef25563aa6323a2d53e87c1e00620b4227c
Contents?: true
Size: 1.2 KB
Versions: 17
Compression:
Stored size: 1.2 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 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
17 entries across 17 versions & 1 rubygems