MCPcopy
hub / github.com/desandro/draggabilly / Draggabilly

Function Draggabilly

draggabilly.js:37–51  ·  view source on GitHub ↗
( element, options )

Source from the content-addressed store, hash-verified

35// -------------------------- Draggabilly -------------------------- //
36
37function Draggabilly( element, options ) {
38 // querySelector if string
39 this.element = typeof element == 'string' ?
40 document.querySelector( element ) : element;
41
42 if ( jQuery ) {
43 this.$element = jQuery( this.element );
44 }
45
46 // options
47 this.options = {};
48 this.option( options );
49
50 this._create();
51}
52
53// inherit Unidragger methods
54let proto = Draggabilly.prototype = Object.create( Unidragger.prototype );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…