Skip to content

Commit

Permalink
v0.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Jul 30, 2012
1 parent 0ef0e56 commit 5856264
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Node Properties

[Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)

Version: 0.1.12
Version: 0.1.13

<a name="availability"></a>
#### Availability [](#start) ####
Expand Down
2 changes: 1 addition & 1 deletion build/properties.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* @author Gabriel Llamas
* @created 08/04/2012
* @modified 29/07/2012
* @version 0.1.12
* @modified 30/07/2012
* @version 0.1.13
*/
"use strict";

Expand Down Expand Up @@ -194,7 +194,8 @@ PropertyReader.prototype.parse = function (c){
}
};

var Properties = function (){
var Properties = function (encoding){
this._encoding = encoding || "utf8";
this._keys = {};
};

Expand All @@ -220,7 +221,7 @@ Properties.prototype.load = function (fileName, cb){
if (cb) cb (null);
});

new BufferedReader (fileName, { encoding: "utf8" })
new BufferedReader (fileName, { encoding: this._encoding })
.on ("error", function (error){
if (cb) cb (error);
})
Expand Down

0 comments on commit 5856264

Please sign in to comment.