Sha256: bd2337c5051cc5c3871ab613255bba8fd03cb7d9a97514ab4e56e73c10b7c4d2

Contents?: true

Size: 1.07 KB

Versions: 39

Compression:

Stored size: 1.07 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('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

39 entries across 39 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js