Permalink
Browse files

updated to es5 'use strict'; by removing undefined global

  • Loading branch information...
coolaj86 committed Feb 27, 2011
1 parent 15e3b8f commit 98942b0236f33866be5035711f01e88a92152d6d
Showing with 21 additions and 15 deletions.
  1. +11 −4 README.md
  2. +1 −1 examples/upload-client.js
  3. +1 −1 lib/file-list.js
  4. +1 −1 lib/file-reader.js
  5. +1 −1 lib/file.js
  6. +1 −1 lib/form-data.js
  7. +1 −1 lib/index.js
  8. +4 −5 { → lib}/package.json
View
@@ -28,6 +28,13 @@ Since `HTML5 FileAPI` has been described by the W3C (terse, technical) and Mozil
* `FileError` and `FileException` are not yet implemented (they use `Error` instead)
* `blob: scheme` and remote `URI schemes` are not yet implemented
+FormData
+----
+
+[FormData on MDN](https://developer.mozilla.org/en/XMLHttpRequest/FormData)
+
+Has the special method `setNodeChunkedEncoding()`
+
File
----
@@ -166,10 +173,10 @@ W3C
Mozilla Developer Center:
- * [MDC: Using files from web applications](https://developer.mozilla.org/en/using_files_from_web_applications)
- * [MDC: File](https://developer.mozilla.org/en/DOM/File)
- * [MDC: FileList](https://developer.mozilla.org/en/DOM/FileList)
- * [MDC: FileReader](https://developer.mozilla.org/en/DOM/FileReader)
+ * [MDN: Using files from web applications](https://developer.mozilla.org/en/using_files_from_web_applications)
+ * [MDN: File](https://developer.mozilla.org/en/DOM/File)
+ * [MDN: FileList](https://developer.mozilla.org/en/DOM/FileList)
+ * [MDN: FileReader](https://developer.mozilla.org/en/DOM/FileReader)
TODO
====
@@ -6,7 +6,7 @@
File = require('../lib/file.js'),
FormData = require('../lib/form-data.js'),
formData = new FormData(),
- client = http.createClient(3000, 'localhost'),
+ client = http.createClient(process.argv[3] || 3000, process.argv[2] || 'localhost'),
headers = {
"Host": "localhost:3000",
"User-Agent": "Node.js (AbstractHttpRequest)",
View
@@ -3,6 +3,7 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-filelist
// https://developer.mozilla.org/en/DOM/FileList
+var provide = provide || function () {};
(function () {
"use strict";
@@ -34,6 +35,5 @@
module.exports = FileList;
- if ('undefined' === typeof provide) { provide = function() {}; }
provide('file-api/file-list');
}());
View
@@ -3,6 +3,7 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-filereader
// https://developer.mozilla.org/en/DOM/FileReader
+var provide = provide || function () {};
(function () {
"use strict";
@@ -294,6 +295,5 @@
module.exports = FileReader;
- if ('undefined' === typeof provide) { provide = function() {}; }
provide('file-api/file-list');
}());
View
@@ -3,6 +3,7 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-file
// https://developer.mozilla.org/en/DOM/File
+var provide = provide || function () {};
(function () {
"use strict";
@@ -60,6 +61,5 @@
module.exports = File;
- if ('undefined' === typeof provide) { provide = function() {}; }
provide('file-api/file');
}());
View
@@ -3,6 +3,7 @@
//
// http://hacks.mozilla.org/2010/05/formdata-interface-coming-to-firefox/
//
+var provide = provide || function () {};
(function () {
"use strict";
@@ -231,6 +232,5 @@
module.exports = FormData;
- if ('undefined' === typeof provide) { provide = function() {}; }
provide('file-api/form-data');
}());
View
@@ -1,6 +1,7 @@
//
// HTML5 File API
// http://www.w3.org/TR/FileAPI
+var provide = provide || function () {};
(function () {
"use strict";
@@ -34,6 +35,5 @@
return false;
};
- if ('undefined' === typeof provide) { provide = function() {}; }
provide('file-api');
}());
@@ -6,11 +6,10 @@
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
- "bufferjs": "> 0.1.0",
+ "bufferjs": "> 0.2.0",
"noop": ">= 0.1.0",
- "futures": ">= 1.9.0"
+ "futures": ">= 1.9.4"
},
- "lib" : "lib",
- "main" : "./lib/index",
- "version" : "0.9.1"
+ "main" : "./index",
+ "version" : "0.9.2"
}

0 comments on commit 98942b0

Please sign in to comment.