Merge pull request #71 from bergie/master
Prevent data from leaking into local scope on updateAttribute
This commit is contained in:
commit
aef8adb557
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue