Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated license, code var name

  • Loading branch information...
commit cc4b7ba995aafce822eb927a134808b7b983dae0 1 parent f193ec1
@gagle authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  LICENSE
  2. +5 −5 buffered-writer.js
View
2  LICENSE
@@ -1,6 +1,6 @@
MIT License.
-Copyright (c) 2012. Gabriel Llamas.
+Copyright (c) 2012+. Gabriel Llamas.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
10 buffered-writer.js
@@ -1,7 +1,7 @@
"use strict";
-var EVENTS = require ("events");
-var FS = require ("fs");
+var events = require ("events");
+var fs = require ("fs");
var ep = require ("error-provider");
ep.create (ep.next (), "INVALID_BUFFER_SIZE",
@@ -33,7 +33,7 @@ bw.open = function (file, args){
};
var Writer = function (file, args){
- EVENTS.EventEmitter.call (this);
+ events.EventEmitter.call (this);
this._bufferSize = args.bufferSize;
this._encoding = args.encoding;
@@ -42,7 +42,7 @@ var Writer = function (file, args){
this._closed = false;
var me = this;
- this._stream = FS.createWriteStream (file, {
+ this._stream = fs.createWriteStream (file, {
flags: args.append ? "a" : "w",
encoding: args.encoding,
mode: args.mode,
@@ -57,7 +57,7 @@ var Writer = function (file, args){
});
};
-Writer.prototype = Object.create (EVENTS.EventEmitter.prototype);
+Writer.prototype = Object.create (events.EventEmitter.prototype);
Writer.prototype.constructor = Writer;
Writer.prototype._error = function (error){
Please sign in to comment.
Something went wrong with that request. Please try again.