Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / source / Association.html
index 74f0746..77db257 100644 (file)
@@ -1,5 +1,22 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-data.Association-method-constructor'><span id='Ext-data.Association'>/**
-</span></span> * @author Ed Spencer
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-data-Association'>/**
+</span> * @author Ed Spencer
  * @class Ext.data.Association
  * @extends Object
  *
@@ -113,29 +130,27 @@ Ext.onReady(function(){
 });
  * &lt;/code&gt;&lt;/pre&gt;
  *
- * @constructor
- * @param {Object} config Optional config object
  */
 Ext.define('Ext.data.Association', {
-<span id='Ext-data.Association-cfg-ownerModel'>    /**
+<span id='Ext-data-Association-cfg-ownerModel'>    /**
 </span>     * @cfg {String} ownerModel The string name of the model that owns the association. Required
      */
 
-<span id='Ext-data.Association-cfg-associatedModel'>    /**
+<span id='Ext-data-Association-cfg-associatedModel'>    /**
 </span>     * @cfg {String} associatedModel The string name of the model that is being associated with. Required
      */
 
-<span id='Ext-data.Association-cfg-primaryKey'>    /**
+<span id='Ext-data-Association-cfg-primaryKey'>    /**
 </span>     * @cfg {String} primaryKey The name of the primary key on the associated model. Defaults to 'id'.
      * In general this will be the {@link Ext.data.Model#idProperty} of the Model.
      */
     primaryKey: 'id',
 
-<span id='Ext-data.Association-cfg-reader'>    /**
+<span id='Ext-data-Association-cfg-reader'>    /**
 </span>     * @cfg {Ext.data.reader.Reader} reader A special reader to read associated data
      */
     
-<span id='Ext-data.Association-cfg-associationKey'>    /**
+<span id='Ext-data-Association-cfg-associationKey'>    /**
 </span>     * @cfg {String} associationKey The name of the property in the data to read the association from.
      * Defaults to the name of the associated model.
      */
@@ -169,6 +184,10 @@ Ext.define('Ext.data.Association', {
         }
     },
 
+<span id='Ext-data-Association-method-constructor'>    /**
+</span>     * Creates the Association object.
+     * @param {Object} config (optional) Config object.
+     */
     constructor: function(config) {
         Ext.apply(this, config);
 
@@ -191,13 +210,13 @@ Ext.define('Ext.data.Association', {
         this.ownerModel = ownerModel;
         this.associatedModel = associatedModel;
 
-<span id='Ext-data.Association-property-ownerName'>        /**
+<span id='Ext-data-Association-property-ownerName'>        /**
 </span>         * The name of the model that 'owns' the association
          * @property ownerName
          * @type String
          */
 
-<span id='Ext-data.Association-property-associatedName'>        /**
+<span id='Ext-data-Association-property-associatedName'>        /**
 </span>         * The name of the model is on the other end of the association (e.g. if a User model hasMany Orders, this is 'Order')
          * @property associatedName
          * @type String
@@ -209,7 +228,7 @@ Ext.define('Ext.data.Association', {
         });
     },
 
-<span id='Ext-data.Association-method-getReader'>    /**
+<span id='Ext-data-Association-method-getReader'>    /**
 </span>     * Get a specialized reader for reading associated data
      * @return {Ext.data.reader.Reader} The reader, null if not supplied
      */
@@ -237,4 +256,6 @@ Ext.define('Ext.data.Association', {
         return me.reader || null;
     }
 });
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>