You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js">Ext.Direct.Event = function(config){
  19. Ext.apply(this, config);
  20. };
  21. Ext.Direct.Event.prototype = {
  22. status: true,
  23. getData: function(){
  24. return this.data;
  25. }
  26. };
  27. Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, {
  28. type: 'rpc',
  29. getTransaction: function(){
  30. return this.transaction || Ext.Direct.getTransaction(this.tid);
  31. }
  32. });
  33. Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, {
  34. status: false,
  35. type: 'exception'
  36. });
  37. Ext.Direct.eventTypes = {
  38. 'rpc': Ext.Direct.RemotingEvent,
  39. 'event': Ext.Direct.Event,
  40. 'exception': Ext.Direct.ExceptionEvent
  41. };
  42. </pre>
  43. </body>
  44. </html>