Event2.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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"><span id='Ext-direct-Event'>/**
  19. </span> * @class Ext.direct.Event
  20. * A base class for all Ext.direct events. An event is
  21. * created after some kind of interaction with the server.
  22. * The event class is essentially just a data structure
  23. * to hold a Direct response.
  24. */
  25. Ext.define('Ext.direct.Event', {
  26. /* Begin Definitions */
  27. alias: 'direct.event',
  28. requires: ['Ext.direct.Manager'],
  29. /* End Definitions */
  30. status: true,
  31. <span id='Ext-direct-Event-method-constructor'> /**
  32. </span> * Creates new Event.
  33. * @param {Object} config (optional) Config object.
  34. */
  35. constructor: function(config) {
  36. Ext.apply(this, config);
  37. },
  38. <span id='Ext-direct-Event-method-getData'> /**
  39. </span> * Return the raw data for this event.
  40. * @return {Object} The data from the event
  41. */
  42. getData: function(){
  43. return this.data;
  44. }
  45. });
  46. </pre>
  47. </body>
  48. </html>