[Commits] r1305 - core/trunk/geoext/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Wed Aug 5 16:05:37 CEST 2009


Author: elemoine
Date: 2009-08-05 16:05:37 +0200 (Wed, 05 Aug 2009)
New Revision: 1305

Modified:
   core/trunk/geoext/lib/GeoExt/data/AttributeStore.js
Log:
calling AttributeStore constructor with no argument fails, r=tschaub (closes #136)


Modified: core/trunk/geoext/lib/GeoExt/data/AttributeStore.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/AttributeStore.js	2009-08-05 11:43:20 UTC (rev 1304)
+++ core/trunk/geoext/lib/GeoExt/data/AttributeStore.js	2009-08-05 14:05:37 UTC (rev 1305)
@@ -43,6 +43,7 @@
  *  ``Ext.data.Record.create``.  Defaults to ``["name", "type"]``. 
  */
 GeoExt.data.AttributeStore = function(c) {
+    c = c || {};
     GeoExt.data.AttributeStore.superclass.constructor.call(
         this,
         Ext.apply(c, {
@@ -56,4 +57,4 @@
         })
     );
 };
-Ext.extend(GeoExt.data.AttributeStore, Ext.data.Store);
\ No newline at end of file
+Ext.extend(GeoExt.data.AttributeStore, Ext.data.Store);



More information about the Commits mailing list