diff --git a/server/documents/behaviors/api.html.eco b/server/documents/behaviors/api.html.eco index aabecd241..34fd1dc42 100755 --- a/server/documents/behaviors/api.html.eco +++ b/server/documents/behaviors/api.html.eco @@ -70,8 +70,8 @@ type : 'UI Behavior'
-

Tools for Mocking

-

New powerful callbacks like mockResponse and mockResponseAsync let you asynchronously mock responses and trigger the same callbacks as your API.

+

Tools for Third-Party Integrations & Mocking

+

New powerful callbacks like response and responseAsync let you asynchronously mock responses and trigger the same callbacks as your API.

@@ -210,7 +210,7 @@ type : 'UI Behavior'

Specifying DOM Events

If you need to override what action an API event occurs on you can use the on parameter.

- API requests for the following demos have been faked using API's mockResponse to avoid rate throttling from public APIs. No actual data is returned. + API requests for the following demos have been faked using API's response setting to avoid rate throttling from public APIs. No actual data is returned.
$('.follow.button') @@ -798,12 +798,12 @@ type : 'UI Behavior'

Advanced Use

-

Mocking Responses

-

In 2.0 API includes two new parameter mockResponse and mockResponseAsync which allows you to specify a string, or as a sync or aync function for returning an API response

+

Fulfilling Responses

+

In 2.0 API includes two new parameter response and responseAsync which allows you to specify a string, or as a sync or aync function for returning an API response. (These were previously mockResponse and mockResponseAsync.)

$('.sync.mocked .button') .api({ - mockResponse: { + response: { success: true } }) @@ -826,7 +826,7 @@ type : 'UI Behavior'
$('.async.mocked .button') .api({ - mockResponseAsync: function(settings, callback) { + responseAsync: function(settings, callback) { var response = { success: true }; @@ -1078,17 +1078,29 @@ type : 'UI Behavior' - mockResponse + response false Can be set to a javascript object which will be returned automatically instead of requesting JSON from server {} or false - mockResponseAsync(settings, callback) + responseAsync(settings, callback) false When specified, this function can be used to retrieve content from a server and return it asynchronously instead of a standard AJAX call. The callback function should return the server response. function or false + + mockResponse + false + Alias of response + + + + mockResponseAsync + false + Alias of responseAsync + + method get diff --git a/server/documents/hotfix.html.eco b/server/documents/hotfix.html.eco index d2c44a646..3a77fecdb 100644 --- a/server/documents/hotfix.html.eco +++ b/server/documents/hotfix.html.eco @@ -7,20 +7,28 @@ title : 'Test Page' type : 'Library' --- -
- - - -
+

Hello

+ +

+
Update
@@ -30,4 +38,4 @@ $(document) body > .ui.container:first-child { margin-top: 5em; } - \ No newline at end of file + diff --git a/server/documents/modules/popup.html.eco b/server/documents/modules/popup.html.eco index eddfc974b..031ccda8b 100755 --- a/server/documents/modules/popup.html.eco +++ b/server/documents/modules/popup.html.eco @@ -692,11 +692,6 @@ themes : ['Default'] 10 Number of iterations before giving up search for popup position when a popup cannot fit on screen - - inverted - false - Invert text and background colors - diff --git a/server/documents/modules/search.html.eco b/server/documents/modules/search.html.eco index 88a4c935d..a2045489f 100755 --- a/server/documents/modules/search.html.eco +++ b/server/documents/modules/search.html.eco @@ -108,6 +108,8 @@ type : 'UI Module'
+