Prevent data from leaking to global

This commit is contained in:
Henri Bergius 2012-04-13 18:58:23 +02:00
parent 221c3d4c83
commit 6a777c00ac
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}; };