Permalink
Browse files

changing the 'H5' namespce to 'h5' for consistency and easier typing

  • Loading branch information...
1 parent 63e61bd commit 6a9a81ab4950358930329a9a4b9410a8fcbd71a7 @getify committed Jul 20, 2012
Showing with 21 additions and 21 deletions.
  1. +1 −1 README.md
  2. +4 −4 canvas.h5ive.js
  3. +1 −1 core.h5ive.js
  4. +1 −1 example-canvas.js
  5. +3 −3 example-storage.js
  6. +2 −2 example-xhr.js
  7. +1 −1 h5ive.js
  8. +4 −4 storage.h5ive.js
  9. +4 −4 xhr.h5ive.js
View
@@ -60,7 +60,7 @@ h5ive.js
This single file is what you will include in your HTML5 JavaScript projects. It will eventually be customizable with a build-tool, which will let you pick which "module format" (AMD, CommonJS, customized module, etc) you prefer, and then include only which API modules you need.
-The entire API will be under the `H5` namespace. For instance, XHR2 will be exposed as `H5.xhr`.
+The entire API will be under the `h5` namespace. For instance, XHR2 will be exposed as `h5.xhr`.
License
View
@@ -1,10 +1,10 @@
/*! canvas.h5ive.js | (c) Kyle Simpson | MIT License: http://getify.mit-license.org */
-(function(H5){
+(function(h5){
- if (!H5) throw new Error("canvas.h5ive: core.h5ive required.");
+ if (!h5) throw new Error("canvas.h5ive: core.h5ive required.");
- H5.canvas = function(cOpts) {
+ h5.canvas = function(cOpts) {
var publicAPI, CANVAS, CONTEXT,
cWidth, cHeight, in_path = false,
segmentTypes = {
@@ -212,4 +212,4 @@
return publicAPI;
};
-})(this.H5);
+})(this.h5);
View
@@ -2,7 +2,7 @@
(function(global){
- global.H5 = {
+ global.h5 = {
// TODO: fill in core API functions
};
View
@@ -1,4 +1,4 @@
-var cnv = H5.canvas({
+var cnv = h5.canvas({
width: 500,
height: 500,
matchDimensions: true // make the CSS dimensions match the attribute dimensions
View
@@ -1,6 +1,6 @@
-var keep = H5.storage();
-var session = H5.storage({ expires: "session" });
-var temp = H5.storage({ expires: 5*60*1000 }); // 5 minutes
+var keep = h5.storage();
+var session = h5.storage({ expires: "session" });
+var temp = h5.storage({ expires: 5*60*1000 }); // 5 minutes
keep
View
@@ -1,6 +1,6 @@
-var data = H5.formData(document.getElementById("my_form"));
+var data = h5.formData(document.getElementById("my_form"));
-H5
+h5
.xhr({ method: "POST" })
.connect("http://example.com")
.send(data)
View
@@ -1,2 +1,2 @@
/*! h5ive.js | (c) Kyle Simpson | MIT License: http://getify.mit-license.org */
-(function(a){a.H5={};})(this);(function(a){if(!a)throw new Error("xhr.h5ive: core.h5ive required but missing.");a.xhr=function(b){};})(this.H5);
+(function(a){a.h5={};})(this);(function(a){if(!a)throw new Error("xhr.h5ive: core.h5ive required but missing.");a.xhr=function(b){};})(this.h5);
View
@@ -1,10 +1,10 @@
/*! storage.h5ive.js | (c) Kyle Simpson | MIT License: http://getify.mit-license.org */
-(function(H5){
+(function(h5){
- if (!H5) throw new Error("storage.h5ive: core.h5ive required.");
+ if (!h5) throw new Error("storage.h5ive: core.h5ive required.");
- H5.storage = function(opts) {
+ h5.storage = function(opts) {
var store, publicAPI, expires;
opts = opts || {};
@@ -66,4 +66,4 @@
return publicAPI;
};
-})(this.H5);
+})(this.h5);
View
@@ -1,10 +1,10 @@
/*! xhr.h5ive.js | (c) Kyle Simpson | MIT License: http://getify.mit-license.org */
-(function(H5){
+(function(h5){
- if (!H5) throw new Error("xhr.h5ive: core.h5ive required.");
+ if (!h5) throw new Error("xhr.h5ive: core.h5ive required.");
- H5.xhr = function(opts) {
+ h5.xhr = function(opts) {
var XHR, publicAPI, used = false;
function connect(url) {
@@ -81,4 +81,4 @@
return publicAPI;
};
-})(this.H5);
+})(this.h5);

0 comments on commit 6a9a81a

Please sign in to comment.