Skip to content

Commit

Permalink
Prevent data from leaking to global
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Apr 13, 2012
1 parent 221c3d4 commit 6a777c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abstract-class.js
Expand Up @@ -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);
};
Expand Down

0 comments on commit 6a777c0

Please sign in to comment.