Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 8 files changed
  • 0 comments
  • 2 contributors
5  build/io-base/io-base-debug.js
@@ -2,8 +2,9 @@ YUI.add('io-base', function(Y) {
2 2
 
3 3
 /**
4 4
 Base IO functionality. Provides basic XHR transport support.
5  
-@module io-base
6  
-@main io-base
  5
+
  6
+@module io
  7
+@submodule io-base
7 8
 @for IO
8 9
 **/
9 10
 
5  build/io-base/io-base.js
@@ -2,8 +2,9 @@ YUI.add('io-base', function(Y) {
2 2
 
3 3
 /**
4 4
 Base IO functionality. Provides basic XHR transport support.
5  
-@module io-base
6  
-@main io-base
  5
+
  6
+@module io
  7
+@submodule io-base
7 8
 @for IO
8 9
 **/
9 10
 
1  build/io-xdr/io-xdr-debug.js
@@ -308,5 +308,4 @@ event is fired, this value will be set to 0.
308 308
 Y.io.xdr = { delay : 100 };
309 309
 
310 310
 
311  
-
312 311
 }, '@VERSION@' ,{requires:['io-base','datatype-xml-parse']});
1  build/io-xdr/io-xdr.js
@@ -308,5 +308,4 @@ event is fired, this value will be set to 0.
308 308
 Y.io.xdr = { delay : 100 };
309 309
 
310 310
 
311  
-
312 311
 }, '@VERSION@' ,{requires:['io-base','datatype-xml-parse']});
5  src/io/js/io-base.js
... ...
@@ -1,7 +1,8 @@
1 1
 /**
2 2
 Base IO functionality. Provides basic XHR transport support.
3  
-@module io-base
4  
-@main io-base
  3
+
  4
+@module io
  5
+@submodule io-base
5 6
 @for IO
6 7
 **/
7 8
 
20  src/jsonp/docs/jsonp-github.mustache
@@ -16,16 +16,16 @@
16 16
 
17 17
 ```
18 18
 {
19  
-    user: {
20  
-        gravatar_id: "fc2cca...",
  19
+    data: {
  20
+        avatar_id: "fc2cca...",
21 21
         login: "username"
22 22
         name: "User's Name",
23 23
         ...,
24 24
 
25  
-        public_repo_count: 10,
26  
-        public_gist_count: 20,
27  
-        following_count: 30,
28  
-        followers_count: 40
  25
+        public_repos: 10,
  26
+        public_gists: 20,
  27
+        following: 30,
  28
+        followers: 40
29 29
     }
30 30
 }
31 31
 ```
@@ -39,21 +39,21 @@
39 39
 
40 40
 ```
41 41
 // BEFORE
42  
-var url = "http://github.com/api/v2/json/user/show/yui?callback=handleJSONP";
  42
+var url = "https://api.github.com/users/yui?callback=handleJSONP";
43 43
 
44 44
 //AFTER
45  
-var url = "http://github.com/api/v2/json/user/show/yui?callback={callback}";
  45
+var url = "https://api.github.com/users/yui?callback={callback}";
46 46
 ```
47 47
 
48 48
 <p>Then simply pass the url and the function that should handle the JSONP response object to `Y.jsonp(<em>url</em>, <em>handleJSONP</em>)`.</p>
49 49
 
50 50
 ```
51 51
 function handleJSONP(response) {
52  
-    Y.one("#out").setHTML(Y.Lang.sub(template, response.user));
  52
+    Y.one("#out").setHTML(Y.Lang.sub(template, response.data));
53 53
 }
54 54
 
55 55
 Y.one("#demo_btn").on("click", function (e) {
56  
-    // e.g. http://github.com/api/v2/json/user/show/yui?callback={callback}
  56
+    // e.g. https://api.github.com/users/yui?callback={callback}
57 57
     var url = githubAPI + user.get("value") + "?callback={callback}";
58 58
 
59 59
     Y.jsonp(url, handleJSONP);
0  src/jsonp/docs/jsonp_gallery_description.php
No changes.
14  src/jsonp/docs/partials/jsonp-github-js.mustache
@@ -2,7 +2,7 @@
2 2
 YUI().use("jsonp", "node",function (Y) {
3 3
 
4 4
     var user      = Y.one("#github_user"),
5  
-        githubAPI = "http://github.com/api/v2/json/user/show/",
  5
+        githubAPI = "https://api.github.com/users/",
6 6
         template  = // assignment continued below
7 7
         
8 8
     '<table>' +
@@ -17,20 +17,20 @@ YUI().use("jsonp", "node",function (Y) {
17 17
         '</thead>' +
18 18
         '<tbody>' +
19 19
             '<tr>' +
20  
-                '<td>{public_repo_count}</td>' +
21  
-                '<td>{public_gist_count}</td>' +
22  
-                '<td>{followers_count}</td>' +
23  
-                '<td>{following_count}</td>' +
  20
+                '<td>{public_repos}</td>' +
  21
+                '<td>{public_gists}</td>' +
  22
+                '<td>{followers}</td>' +
  23
+                '<td>{following}</td>' +
24 24
             '</tr>' +
25 25
         '</tbody>' +
26 26
     '</table>';
27 27
 
28 28
     function handleJSONP(response) {
29  
-        Y.one("#out").setHTML(Y.Lang.sub(template, response.user));
  29
+        Y.one("#out").setHTML(Y.Lang.sub(template, response.data));
30 30
     }
31 31
 
32 32
     Y.one("#demo_btn").on("click", function (e) {
33  
-        // e.g. http://github.com/api/v2/json/user/show/yui?callback={callback}
  33
+        // e.g. https://api.github.com/users/yui?callback={callback}
34 34
         var url = githubAPI + user.get("value") + "?callback={callback}";
35 35
 
36 36
         Y.jsonp(url, handleJSONP);

No commit comments for this range

Something went wrong with that request. Please try again.