Prevent data from leaking to global
This commit is contained in:
parent
221c3d4c83
commit
6a777c00ac
|
@ -513,7 +513,7 @@ AbstractClass.prototype.destroy = function (cb) {
|
||||||
* @param {Function} callback - callback called with (err, instance)
|
* @param {Function} callback - callback called with (err, instance)
|
||||||
*/
|
*/
|
||||||
AbstractClass.prototype.updateAttribute = function updateAttribute(name, value, callback) {
|
AbstractClass.prototype.updateAttribute = function updateAttribute(name, value, callback) {
|
||||||
data = {};
|
var data = {};
|
||||||
data[name] = value;
|
data[name] = value;
|
||||||
this.updateAttributes(data, callback);
|
this.updateAttributes(data, callback);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue