Skip to content

Commit

Permalink
added setter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislas Polu committed Apr 5, 2013
1 parent 23c5dcd commit 5ad187b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ exports.setter = function(that, name, obj, prop) {
return that;
};
that['set' + name.substring(0, 1).toUpperCase() + name.substring(1)] = setter;
that['set' + '_' + name] = setter;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fwk",
"version": "1.1.2",
"version": "1.1.3",
"description": "Simple JS framework for node.js",
"keywords": ["fwk", "node"],
"homepage": "https://github.com/teleportd/fwk",
Expand Down

0 comments on commit 5ad187b

Please sign in to comment.