[OpenLayers-Commits] r7509 - in sandbox/vector-behavior/lib: . OpenLayers/Strategy
commits at openlayers.org
commits at openlayers.org
Tue Jul 15 04:07:12 EDT 2008
Author: elemoine
Date: 2008-07-15 04:07:12 -0400 (Tue, 15 Jul 2008)
New Revision: 7509
Removed:
sandbox/vector-behavior/lib/OpenLayers/Strategy/Composer.js
Modified:
sandbox/vector-behavior/lib/OpenLayers.js
Log:
remove the Composer strategy, it's no longer relevant
Deleted: sandbox/vector-behavior/lib/OpenLayers/Strategy/Composer.js
===================================================================
--- sandbox/vector-behavior/lib/OpenLayers/Strategy/Composer.js 2008-07-15 07:45:09 UTC (rev 7508)
+++ sandbox/vector-behavior/lib/OpenLayers/Strategy/Composer.js 2008-07-15 08:07:12 UTC (rev 7509)
@@ -1,109 +0,0 @@
-/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
- * license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
- * full text of the license. */
-
-/**
- * @requires OpenLayers/Strategy.js
- */
-
-/**
- * Class: OpenLayers.Strategy.Composer
- * A strategy for composing an update strategy and a commit strategy.
- *
- * Inherits from:
- * - OpenLayers.Strategy
- */
-OpenLayers.Strategy.Composer = OpenLayers.Class(OpenLayers.Strategy, {
-
- /**
- * Property: updateStategy
- * {<OpenLayers.Stategy>} A stategy object that implements the
- * update method.
- */
- updateStrategy: null,
-
- /**
- * Property: commitStrategy
- * {<OpenLayers.Strategy>} A strategy object that implements the
- * commit method.
- */
- commitStrategy: null,
-
- /**
- * Constructor: OpenLayers.Strategy.Composer
- * Create a new Composer strategy.
- *
- * Parameters:
- * options - {Object} Optional object whose properties will be set on the
- * instance.
- */
- initialize: function(options) {
- OpenLayers.Strategy.prototype.initialize.apply(this, [options]);
- if (options.updateStrategyClass) {
- this.updateStrategy = new options.updateStrategyClass(
- options.updateStrategyOptions
- );
- }
- if (options.commitStrategyClass) {
- this.commitStrategy = new options.commitStrategyClass(
- options.commitStrategyOptions
- );
- }
- },
-
- /**
- * APIMethod: destroy
- * Clean up the strategy.
- */
- destroy: function() {
- if (this.updateStrategy) {
- this.updateStrategy.destroy();
- this.updateStrategy = null;
- }
- if (this.commitStrategy) {
- this.commitStrategy.destroy();
- this.commitStrategy = null;
- }
- OpenLayers.Strategy.prototype.destroy.apply(this, arguments);
- },
-
- /**
- * Method: setLayer
- * Set this strategy's layer.
- *
- * Parameters:
- * {<OpenLayers.Layer.Vector>}
- */
- setLayer: function(layer) {
- OpenLayers.Strategy.prototype.setLayer.apply(this, arguments);
- if (this.updateStrategy) {
- this.updateStrategy.setLayer(layer);
- }
- if (this.commitStrategy) {
- this.commitStrategy.setLayer(layer);
- }
- },
-
- /**
- * Method: update
- * Set up strategy with regard to reading new batches of remote data.
- */
- update: function() {
- if (this.updateStrategy) {
- this.updateStrategy.update();
- }
- },
-
- /**
- * Method: commit
- * Set up strategy with regard to committing feature modifications
- * (insertions, updates, and deletes).
- */
- commit: function() {
- if (this.commitStrategy) {
- this.commitStrategy.update();
- }
- },
-
- CLASS_NAME: "OpenLayers.Strategy.Composer"
-});
Modified: sandbox/vector-behavior/lib/OpenLayers.js
===================================================================
--- sandbox/vector-behavior/lib/OpenLayers.js 2008-07-15 07:45:09 UTC (rev 7508)
+++ sandbox/vector-behavior/lib/OpenLayers.js 2008-07-15 08:07:12 UTC (rev 7509)
@@ -188,7 +188,6 @@
"OpenLayers/Layer/GML.js",
"OpenLayers/Strategy.js",
"OpenLayers/Strategy/BBOX.js",
- "OpenLayers/Strategy/Composer.js",
"OpenLayers/Strategy/Fixed.js",
"OpenLayers/Strategy/Save.js",
"OpenLayers/Strategy/GreedySave.js",
More information about the Commits
mailing list