Remove unused ol.Object#setOptions function

This commit is contained in:
Frederic Junod
2013-07-17 09:38:15 +02:00
parent 3d7316906b
commit a965d9ee9f
2 changed files with 4 additions and 12 deletions

View File

@@ -281,12 +281,12 @@ ol.Object.prototype.set = function(key, value) {
/**
* Sets a collection of key-value pairs.
* @param {Object.<string, *>} options Options.
* @param {Object.<string, *>} values Values.
*/
ol.Object.prototype.setOptions = function(options) {
ol.Object.prototype.setValues = function(values) {
var key, value, setterName;
for (key in options) {
value = options[key];
for (key in values) {
value = values[key];
setterName = ol.Object.getSetterName(key);
if (this[setterName]) {
this[setterName](value);
@@ -297,13 +297,6 @@ ol.Object.prototype.setOptions = function(options) {
};
/**
* Sets a collection of key-value pairs.
* @param {Object.<string, *>} values Values.
*/
ol.Object.prototype.setValues = ol.Object.prototype.setOptions;
/**
* Removes a binding. Unbinding will set the unbound property to the current
* value. The object will not be notified, as the value has not changed.