MCPcopy Index your code
hub / github.com/shipshapecode/tether / DropInstance

Function DropInstance

docs/welcome/js/drop.js:87–99  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

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');

Callers

nothing calls this directly

Calls 1

extendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…