update documentation example
This commit is contained in:
parent
6fcfc2f2d6
commit
2194a5fb8b
1 changed files with 6 additions and 6 deletions
|
@ -174,9 +174,9 @@ just a special case of `name <type> summary`, where `name` has the form
|
||||||
|
|
||||||
If an item can be of more than one type (in this case `string` or `function`),
|
If an item can be of more than one type (in this case `string` or `function`),
|
||||||
this is documented as `<s|f>`. If it has a default value (in this case the
|
this is documented as `<s|f>`. If it has a default value (in this case the
|
||||||
string `'GET'`), this is documented as `<s|'GET'>`. For a `function`-type
|
string `'GET'`), this is documented as `<s|'GET'>`. For a function-type argument
|
||||||
argument (usually a callback function), there is no return value to document,
|
(usually a callback function), there is no return value to document, only the
|
||||||
only the arguments it gets passed.
|
arguments it gets passed.
|
||||||
*/
|
*/
|
||||||
/*@
|
/*@
|
||||||
My.readURL <f> Asynchronously reads a remote resource
|
My.readURL <f> Asynchronously reads a remote resource
|
||||||
|
@ -299,8 +299,8 @@ My.localStorage <f> Returns a localStorage handler for a given namespace
|
||||||
'baz'
|
'baz'
|
||||||
> My.test.storage.delete('bar')('foo')
|
> My.test.storage.delete('bar')('foo')
|
||||||
'bar'
|
'bar'
|
||||||
> Object.keys(My.test.storage())
|
> My.test.storage.delete()()
|
||||||
['foo']
|
{}
|
||||||
*/
|
*/
|
||||||
My.localStorage = function(ns) {
|
My.localStorage = function(ns) {
|
||||||
function storage(key, value) {
|
function storage(key, value) {
|
||||||
|
@ -598,7 +598,7 @@ Ox.SyntaxHighlighter and Ox.DocPanel, and they'll do the rest.
|
||||||
*/
|
*/
|
||||||
Ox.load('UI', function() {
|
Ox.load('UI', function() {
|
||||||
var file = 'example.js',
|
var file = 'example.js',
|
||||||
path = Ox.PATH + '../examples/documentation/oxdoc/js/';
|
path = Ox.PATH + '../examples/documentation/oxdoc_tutorial/js/';
|
||||||
Ox.get(path + file, function(source) {
|
Ox.get(path + file, function(source) {
|
||||||
Ox.TabPanel({
|
Ox.TabPanel({
|
||||||
content: function(id) {
|
content: function(id) {
|
||||||
|
|
Loading…
Reference in a new issue