Sha256: 3e80b922ef89fe623947f75e57e57d70f5cab51f9505d7ae5a3dcb51d8912865
Contents?: true
Size: 1 KB
Versions: 11
Compression:
Stored size: 1 KB
Contents
// ======================================================================== // SproutCore -- JavaScript Application Framework // Copyright ©2006-2008, Sprout Systems, 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
11 entries across 11 versions & 1 rubygems