( element, options )
| 35 | // -------------------------- Draggabilly -------------------------- // |
| 36 | |
| 37 | function 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 |
| 54 | let proto = Draggabilly.prototype = Object.create( Unidragger.prototype ); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…