| 1 |
define(["dojo/_base/declare", "dojo/on"], function(declare, on){ |
| 2 |
|
| 3 |
return declare("dojox.mobile.TransitionEvent", null, { |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
constructor: function(target, transitionOptions, triggerEvent){ |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
this.transitionOptions = transitionOptions; |
| 17 |
this.target = target; |
| 18 |
this.triggerEvent = triggerEvent||null; |
| 19 |
}, |
| 20 |
|
| 21 |
dispatch: function(){ |
| 22 |
|
| 23 |
|
| 24 |
var opts = {bubbles:true, cancelable:true, detail: this.transitionOptions, triggerEvent: this.triggerEvent}; |
| 25 |
var evt = on.emit(this.target,"startTransition", opts); |
| 26 |
} |
| 27 |
}); |
| 28 |
}); |