| 1 | export default function DragEvent(type, {
|
|---|
| 2 | sourceEvent,
|
|---|
| 3 | subject,
|
|---|
| 4 | target,
|
|---|
| 5 | identifier,
|
|---|
| 6 | active,
|
|---|
| 7 | x, y, dx, dy,
|
|---|
| 8 | dispatch
|
|---|
| 9 | }) {
|
|---|
| 10 | Object.defineProperties(this, {
|
|---|
| 11 | type: {value: type, enumerable: true, configurable: true},
|
|---|
| 12 | sourceEvent: {value: sourceEvent, enumerable: true, configurable: true},
|
|---|
| 13 | subject: {value: subject, enumerable: true, configurable: true},
|
|---|
| 14 | target: {value: target, enumerable: true, configurable: true},
|
|---|
| 15 | identifier: {value: identifier, enumerable: true, configurable: true},
|
|---|
| 16 | active: {value: active, enumerable: true, configurable: true},
|
|---|
| 17 | x: {value: x, enumerable: true, configurable: true},
|
|---|
| 18 | y: {value: y, enumerable: true, configurable: true},
|
|---|
| 19 | dx: {value: dx, enumerable: true, configurable: true},
|
|---|
| 20 | dy: {value: dy, enumerable: true, configurable: true},
|
|---|
| 21 | _: {value: dispatch}
|
|---|
| 22 | });
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | DragEvent.prototype.on = function() {
|
|---|
| 26 | var value = this._.on.apply(this._, arguments);
|
|---|
| 27 | return value === this._ ? this : value;
|
|---|
| 28 | };
|
|---|