Sha256: 78413c6613c6ab48c4a3a6cd58fac267c37910db93e85c87afd802ba59d44b69
Contents?: true
Size: 792 Bytes
Versions: 7
Compression:
Stored size: 792 Bytes
Contents
// ========================================================================== // Project: Greenhouse.EventBlocker // Copyright: ©2009 My Company, Inc. // ========================================================================== /*globals Greenhouse */ /** @class prevents drag events from hitting iframe thanks to Jonathan Lewis @extends SC.View */ Greenhouse.EventBlocker = SC.View.extend( /** @scope Greenhouse.EventBlocker.prototype */ { isVisible: NO, dragStarted: function(drag, evt) { this.set('isVisible', YES); }, dragEnded: function(drag, evt) { this.set('isVisible', NO); }, isDropTarget: YES, mouseMoved: function(evt){ return this.get('isVisible'); }, mouseDragged: function(evt){ return this.get('isVisible'); } });
Version data entries
7 entries across 7 versions & 1 rubygems