Merge pull request #71 from bergie/master

Prevent data from leaking into local scope on updateAttribute
This commit is contained in:
Anatoliy Chakkaev 2012-04-14 06:37:41 -07:00
commit aef8adb557
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)
*/
AbstractClass.prototype.updateAttribute = function updateAttribute(name, value, callback) {
data = {};
var data = {};
data[name] = value;
this.updateAttributes(data, callback);
};