Client.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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-data-proxy-Client'>/**
  19. </span> * @author Ed Spencer
  20. *
  21. * Base class for any client-side storage. Used as a superclass for {@link Ext.data.proxy.Memory Memory} and
  22. * {@link Ext.data.proxy.WebStorage Web Storage} proxies. Do not use directly, use one of the subclasses instead.
  23. * @private
  24. */
  25. Ext.define('Ext.data.proxy.Client', {
  26. extend: 'Ext.data.proxy.Proxy',
  27. alternateClassName: 'Ext.data.ClientProxy',
  28. <span id='Ext-data-proxy-Client-property-isSynchronous'> /**
  29. </span> * @property {Boolean} isSynchronous
  30. * `true` in this class to identify that requests made on this proxy are
  31. * performed synchronously
  32. */
  33. isSynchronous: true,
  34. <span id='Ext-data-proxy-Client-method-clear'> /**
  35. </span> * Abstract function that must be implemented by each ClientProxy subclass. This should purge all record data
  36. * from the client side storage, as well as removing any supporting data (such as lists of record IDs)
  37. */
  38. clear: function() {
  39. //&lt;debug&gt;
  40. Ext.Error.raise(&quot;The Ext.data.proxy.Client subclass that you are using has not defined a 'clear' function. See src/data/ClientProxy.js for details.&quot;);
  41. //&lt;/debug&gt;
  42. }
  43. });</pre>
  44. </body>
  45. </html>