Sha256: 1dad05253a10da7f584042888fb950471bf456606eb1595256ce93e6653380ca

Contents?: true

Size: 1018 Bytes

Versions: 7

Compression:

Stored size: 1018 Bytes

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2011, Strobe Inc. and contributors.
// Portions copyright ©2008 Apple Inc.  All rights reserved.
// ========================================================================

require('system/drag') ;

SC.Drag.mixin(
/** @scope SC.Drag */ {
   
  /**
    Convenience method to turn an operation mask into a descriptive string.
  */
  inspectOperation: function(op) {
    var ret = [] ;
    if (op === SC.DRAG_NONE) {
      ret = ['DRAG_NONE'];
    } else if (op === SC.DRAG_ANY) {
      ret = ['DRAG_ANY'] ;
    } else {
      if (op & SC.DRAG_LINK) {
        ret.push('DRAG_LINK') ;
      }
      
      if (op & SC.DRAG_COPY) {
        ret.push('DRAG_COPY') ;
      }
      
      if (op & SC.DRAG_MOVE) {
        ret.push('DRAG_MOVE') ;
      }
      
      if (op & SC.DRAG_REORDER) {
        ret.push('DRAG_REORDER') ;
      }
    }
    return ret.join('|') ;
  }

});

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.4.5 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js