(options)
| 85 | __extends(DropInstance, _super); |
| 86 | |
| 87 | function DropInstance(options) { |
| 88 | this.options = options; |
| 89 | this.options = extend({}, drop.defaults, this.options); |
| 90 | this.target = this.options.target; |
| 91 | if (this.target == null) { |
| 92 | throw new Error('Drop Error: You must provide a target.'); |
| 93 | } |
| 94 | drop.drops.push(this); |
| 95 | allDrops[drop.classPrefix].push(this); |
| 96 | this.setupElements(); |
| 97 | this.setupEvents(); |
| 98 | this.setupTether(); |
| 99 | } |
| 100 | |
| 101 | DropInstance.prototype.setupElements = function() { |
| 102 | this.drop = document.createElement('div'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…