Skip to content

Commit

Permalink
docs: split interface and property definition for console and JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
drauggres authored and sgtcoolguy committed Feb 7, 2020
1 parent a8f4d37 commit 958a6a3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Global.console
name: Console
summary: Console logging facilities.
description: |
The toplevel `console` support is intended to supplement <Titanium.API>
Expand Down Expand Up @@ -88,7 +88,7 @@ methods:
- name: timeEnd
summary: Stop a timer that was previously started.
description: |
Stop a timer that was started by calling [console.time](Global.console.time), and
Stop a timer that was started by calling [console.time](Console.time), and
output the time since the timer was begun to the console in milliseconds.
If no timer exists a warning will be logged to the console.
parameters:
Expand All @@ -103,7 +103,7 @@ methods:
summary: Log duration taken so far for an operation.
description: |
Output the time since a timer was started by calling
[console.time](Global.console.time) to the console, as well as any
[console.time](Console.time) to the console, as well as any
other `data` arguments provided. To log extra data a label must
be provided. If no timer exists a warning will be logged to the
console.
Expand Down
14 changes: 14 additions & 0 deletions apidoc/Global/Global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,17 @@ methods:
setTimeout(function(){
Ti.API.debug('Called using setTimeout');
}, 500);
properties:
- name: console
summary: Console logging facilities.
type: Console
accessors: false

- name: JSON
summary: |
An intrinsic object that provides functions to convert JavaScript values to and from
the JavaScript Object Notation (JSON) format.
type: JSON
accessors: false
4 changes: 2 additions & 2 deletions apidoc/Global/JSON/JSON.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# JSON module doc adapted from Public Domain json2 reference implementation by Douglas Crockford
# https://github.com/douglascrockford/JSON-js
---
name: Global.JSON
summary: Global JSON object providing the [parse](Global.JSON.parse) and [stringify](Global.JSON.stringify) methods.
name: JSON
summary: Global JSON object providing the [parse](JSON.parse) and [stringify](JSON.stringify) methods.
platforms: [android, iphone, ipad]
methods:

Expand Down

0 comments on commit 958a6a3

Please sign in to comment.