X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..HEAD:/docs/source/MixedCollection.html diff --git a/docs/source/MixedCollection.html b/docs/source/MixedCollection.html index 9ddccf36..df9f6646 100644 --- a/docs/source/MixedCollection.html +++ b/docs/source/MixedCollection.html @@ -1,5 +1,22 @@ -Sencha Documentation Project
/**
- * @class Ext.util.MixedCollection
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
+ * @class Ext.util.MixedCollection
  * <p>
  * Represents a collection of a set of key and value pairs. Each key in the MixedCollection
  * must be unique, the same key cannot exist twice. This collection is ordered, items in the
@@ -30,15 +47,6 @@ var biggerThanZero = coll.filterBy(function(value){
 console.log(biggerThanZero.getCount()); // prints 2
  * </code></pre>
  * </p>
- *
- * @constructor
- * @param {Boolean} allowFunctions Specify <tt>true</tt> if the {@link #addAll}
- * function should add function references to the collection. Defaults to
- * <tt>false</tt>.
- * @param {Function} keyFn A function that can accept an item of the type(s) stored in this MixedCollection
- * and return the key value for that item.  This is used when available to look up the key on items that
- * were passed without an explicit key parameter to a MixedCollection method.  Passing this parameter is
- * equivalent to providing an implementation for the {@link #getKey} method.
  */
 Ext.define('Ext.util.MixedCollection', {
     extend: 'Ext.util.AbstractMixedCollection',
@@ -46,6 +54,16 @@ Ext.define('Ext.util.MixedCollection', {
         sortable: 'Ext.util.Sortable'
     },
 
+    /**
+     * Creates new MixedCollection.
+     * @param {Boolean} allowFunctions Specify <tt>true</tt> if the {@link #addAll}
+     * function should add function references to the collection. Defaults to
+     * <tt>false</tt>.
+     * @param {Function} keyFn A function that can accept an item of the type(s) stored in this MixedCollection
+     * and return the key value for that item.  This is used when available to look up the key on items that
+     * were passed without an explicit key parameter to a MixedCollection method.  Passing this parameter is
+     * equivalent to providing an implementation for the {@link #getKey} method.
+     */
     constructor: function() {
         var me = this;
         me.callParent(arguments);
@@ -57,7 +75,7 @@ Ext.define('Ext.util.MixedCollection', {
         this.sortBy(sorterFn);
     },
 
-    /**
+    /**
      * @private
      * Performs the actual sorting based on a direction and a sorting function. Internally,
      * this creates a temporary array of all items in the MixedCollection, sorts it and then writes
@@ -109,7 +127,7 @@ Ext.define('Ext.util.MixedCollection', {
         me.fireEvent('sort', me);
     },
 
-    /**
+    /**
      * Sorts the collection by a single sorter function
      * @param {Function} sorterFn The function to sort by
      */
@@ -148,7 +166,7 @@ Ext.define('Ext.util.MixedCollection', {
         me.fireEvent('sort', me, items, keys);
     },
 
-    /**
+    /**
      * Reorders each of the items based on a mapping from old index to new index. Internally this
      * just translates into a sort. The 'sort' event is fired whenever reordering has occured.
      * @param {Object} mapping Mapping from old item index to new item index
@@ -188,7 +206,7 @@ Ext.define('Ext.util.MixedCollection', {
         me.fireEvent('sort', me);
     },
 
-    /**
+    /**
      * Sorts this collection by <b>key</b>s.
      * @param {String} direction (optional) 'ASC' or 'DESC'. Defaults to 'ASC'.
      * @param {Function} fn (optional) Comparison function that defines the sort order.
@@ -201,4 +219,6 @@ Ext.define('Ext.util.MixedCollection', {
         });
     }
 });
-
\ No newline at end of file +
+ +