You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cyclotron-svc/examples/example-datasource-javascript.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"dataSources": [{
3
3
"name": "jquery-ajax",
4
-
"processor": "/* Loads a list of Cyclotron tags using jQuery.\n Could be done with the JSON Data Source as well.\n */\np = function (promise) {\n /* Start asychronous AJAX call */\n $.getJSON('http://cyclotrondev.karmalab.net/api/tags', function(data) {\n\n /* Resolves the result asynchronously via the provided promise */\n promise.resolve(_.map(data, function (tag) {\n return { 'name': tag }; \n })); \n });\n}",
4
+
"processor": "/* Loads a list of Cyclotron tags using jQuery.\n Could be done with the JSON Data Source as well.\n */\np = function (promise) {\n /* Start asychronous AJAX call */\n $.getJSON('http://cyclotron/api/tags', function(data) {\n\n /* Resolves the result asynchronously via the provided promise */\n promise.resolve(_.map(data, function (tag) {\n return { 'name': tag }; \n })); \n });\n}",
0 commit comments