Remove OpenLayers.Protocol.CSW.v2_0_2.createCallback, already defined in OpenLayers.Protocol
This commit is contained in:
@@ -52,23 +52,6 @@ OpenLayers.Protocol.CSW.v2_0_2 = OpenLayers.Class(OpenLayers.Protocol, {
|
|||||||
OpenLayers.Protocol.prototype.destroy.apply(this);
|
OpenLayers.Protocol.prototype.destroy.apply(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Method: createCallback
|
|
||||||
* Returns a function that applies the given public method with resp and
|
|
||||||
* options arguments.
|
|
||||||
*
|
|
||||||
* Parameters:
|
|
||||||
* method - {Function} The method to be applied by the callback.
|
|
||||||
* response - {<OpenLayers.Protocol.Response>} The protocol response object.
|
|
||||||
* options - {Object} Options sent to the protocol method (read, create,
|
|
||||||
* update, or delete).
|
|
||||||
*/
|
|
||||||
createCallback: function(method, response, options) {
|
|
||||||
return OpenLayers.Function.bind(function() {
|
|
||||||
method.apply(this, [response, options]);
|
|
||||||
}, this);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: read
|
* Method: read
|
||||||
* Construct a request for reading new records from the Catalogue.
|
* Construct a request for reading new records from the Catalogue.
|
||||||
|
|||||||
Reference in New Issue
Block a user