[OpenLayers-Commits] r7370 - in sandbox/topp/almanac/lib/OpenLayers: Format Protocol Protocol/WFS
commits at openlayers.org
commits at openlayers.org
Mon Jun 16 19:25:04 EDT 2008
Author: tschaub
Date: 2008-06-16 19:25:03 -0400 (Mon, 16 Jun 2008)
New Revision: 7370
Modified:
sandbox/topp/almanac/lib/OpenLayers/Format/Atom.js
sandbox/topp/almanac/lib/OpenLayers/Protocol/WFS/v1_0_0.js
sandbox/topp/almanac/lib/OpenLayers/Protocol/WFSV.js
Log:
removing some extra checks and anonymous objects
Modified: sandbox/topp/almanac/lib/OpenLayers/Format/Atom.js
===================================================================
--- sandbox/topp/almanac/lib/OpenLayers/Format/Atom.js 2008-06-16 23:18:01 UTC (rev 7369)
+++ sandbox/topp/almanac/lib/OpenLayers/Format/Atom.js 2008-06-16 23:25:03 UTC (rev 7370)
@@ -113,7 +113,7 @@
this.geometryParser = new OpenLayers.Format.GMLSF({'xy': this.xy});
}
this.featureAttributes = OpenLayers.Util.applyDefaults(
- this.featureAttributes || {},
+ this.featureAttributes,
this.DEFAULT_ATTRIBUTES
);
},
Modified: sandbox/topp/almanac/lib/OpenLayers/Protocol/WFS/v1_0_0.js
===================================================================
--- sandbox/topp/almanac/lib/OpenLayers/Protocol/WFS/v1_0_0.js 2008-06-16 23:18:01 UTC (rev 7369)
+++ sandbox/topp/almanac/lib/OpenLayers/Protocol/WFS/v1_0_0.js 2008-06-16 23:25:03 UTC (rev 7370)
@@ -151,7 +151,7 @@
*/
'read': function(options) {
var mergedOptions = OpenLayers.Util.extend({}, options);
- OpenLayers.Util.applyDefaults(mergedOptions, this.options || {});
+ OpenLayers.Util.applyDefaults(mergedOptions, this.options);
var params = {};
@@ -296,7 +296,7 @@
commit: function(features, options) {
//this code is duplicated all over the place, should be functionalized out, probably
var mergedOptions = OpenLayers.Util.extend({}, options);
- OpenLayers.Util.applyDefaults(mergedOptions, this.options || {});
+ OpenLayers.Util.applyDefaults(mergedOptions, this.options);
var params = {};
Modified: sandbox/topp/almanac/lib/OpenLayers/Protocol/WFSV.js
===================================================================
--- sandbox/topp/almanac/lib/OpenLayers/Protocol/WFSV.js 2008-06-16 23:18:01 UTC (rev 7369)
+++ sandbox/topp/almanac/lib/OpenLayers/Protocol/WFSV.js 2008-06-16 23:25:03 UTC (rev 7370)
@@ -126,7 +126,7 @@
getLog: function(options){
var mergedOptions = OpenLayers.Util.extend({}, options);
- OpenLayers.Util.applyDefaults(mergedOptions, this.options || {});
+ OpenLayers.Util.applyDefaults(mergedOptions, this.options);
var params = {};
@@ -177,7 +177,7 @@
getDiff: function(options){
var mergedOptions = OpenLayers.Util.extend({}, options);
- OpenLayers.Util.applyDefaults(mergedOptions, this.options || {});
+ OpenLayers.Util.applyDefaults(mergedOptions, this.options);
var params = {};
More information about the Commits
mailing list