From c8886a55b02b66a26e52a0b95e90ca9e630ef61b Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Tue, 27 Mar 2012 13:51:41 +0200 Subject: [PATCH] Regenerate docs --- docs/app.html | 4 ++-- docs/token.html | 6 +++--- docs/tutorial.html | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/app.html b/docs/app.html index b7a76d4..cd0c488 100644 --- a/docs/app.html +++ b/docs/app.html @@ -1,4 +1,4 @@ - app.js

app.js

require(['./js/tutorial', './js/helper'], function(storage, helper) {
+      app.js           

app.js

(function(storage, helper) {
 
   $(function() {
 
@@ -107,6 +107,6 @@
     helper.setAuthorizedState(helper.isAuthorized());
   });
 
-});
+})(tutorial, helper);
 
 
\ No newline at end of file diff --git a/docs/token.html b/docs/token.html index 5015fca..f58a8c9 100644 --- a/docs/token.html +++ b/docs/token.html @@ -1,4 +1,4 @@ - token.js

token.js

receiveToken parses the OAuth token from the URL params

  var token = remoteStorage.receiveToken();

We send the token back to our main page

  window.opener.postMessage(token, location.protocol+'//'+location.host);

and close the window.

  window.close();
+      token.js           

token.js

(function() {

receiveToken parses the OAuth token from the URL params

  var token = remoteStorage.receiveToken();

We send the token back to our main page

  window.opener.postMessage(token, location.protocol+'//'+location.host);

and close the window.

  window.close();
+})();
 
-
-
+
\ No newline at end of file diff --git a/docs/tutorial.html b/docs/tutorial.html index dafe31d..d0ddb59 100644 --- a/docs/tutorial.html +++ b/docs/tutorial.html @@ -1,4 +1,4 @@ - tutorial.js

tutorial.js

Accepting remoteStorage accounts in your web app

define(['./helper'], function(helper) {

getStorageInfo takes a user address ("user@host") and a callback as its + tutorial.js

tutorial.js

Accepting remoteStorage accounts in your web app

var tutorial = (function() {

getStorageInfo takes a user address ("user@host") and a callback as its arguments. The callback will get an error code, and a storageInfo object. If the error code is null, then the storageInfo object will contain data required to access the remoteStorage.

  function connect(userAddress, callback) {
@@ -84,6 +84,6 @@
     putData:   putData,
   };
 
-});
+})();
 
-
+
\ No newline at end of file