forked from 0x2620/oxjs
fixing encoding functions (deflate, png)
This commit is contained in:
parent
318e2e95b2
commit
816993e1b9
10 changed files with 235 additions and 143 deletions
|
|
@ -40,7 +40,7 @@ Ox.DocPage = function(options, self) {
|
|||
.html(
|
||||
'<code><b>' + (name || item.name) + '</b> ' +
|
||||
'<' + item.types.join('></code> or <code><') + '> </code>' +
|
||||
(item['default'] ? 'default: <code>' + item['default'] + ' </code>' : '') +
|
||||
(item['default'] ? '(default: <code>' + item['default'] + '</code>) ' : '') +
|
||||
Ox.parseHTML(item.summary)
|
||||
)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -106,9 +106,9 @@ Ox.DocPanel = function(options, self) {
|
|||
}
|
||||
}
|
||||
(
|
||||
docItem.section ?
|
||||
treeItems[moduleIndex].items[sectionIndex] :
|
||||
treeItems[moduleIndex]
|
||||
docItem.section
|
||||
? treeItems[moduleIndex].items[sectionIndex]
|
||||
: treeItems[moduleIndex]
|
||||
).items.push({
|
||||
id: docItem.name,
|
||||
title: docItem.name
|
||||
|
|
@ -119,7 +119,7 @@ Ox.DocPanel = function(options, self) {
|
|||
item.items.sort(sortByTitle);
|
||||
item.items.forEach(function(subitem) {
|
||||
subitem.items.sort(sortByTitle);
|
||||
})
|
||||
});
|
||||
});
|
||||
self.$list = Ox.TreeList({
|
||||
items: treeItems,
|
||||
|
|
@ -154,7 +154,6 @@ Ox.DocPanel = function(options, self) {
|
|||
var selected;
|
||||
if (data.ids.length) {
|
||||
selected = data.ids[0];
|
||||
Ox.print('selected', data.ids)
|
||||
if (selected[0] != '_') {
|
||||
self.$page = Ox.DocPage({
|
||||
item: getItemByName(selected)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
Ox.Request <o> Basic request handler object
|
||||
FIXME: options is not a property, just documenting defaults
|
||||
options <o> Options object
|
||||
timeout <n|60000> request timeout
|
||||
type <s|POST> request type, possible values POST, GET, PUT, DELETE
|
||||
url <s> request url
|
||||
timeout <n|60000> request timeout
|
||||
type <s|"POST"> request type, possible values POST, GET, PUT, DELETE
|
||||
url <s> request url
|
||||
@*/
|
||||
|
||||
Ox.Request = function(options) {
|
||||
|
|
@ -26,8 +26,8 @@ Ox.Request = function(options) {
|
|||
/*@
|
||||
cancel <f> cancel pending requests
|
||||
() -> <u> cancel all requests
|
||||
(f) -> <u> cancel all requests where function returns true
|
||||
(n) -> <u> cancel request by id
|
||||
(fn) -> <u> cancel all requests where function returns true
|
||||
(id) -> <u> cancel request by id
|
||||
@*/
|
||||
cancel: function() {
|
||||
if (arguments.length == 0) {
|
||||
|
|
@ -47,7 +47,7 @@ Ox.Request = function(options) {
|
|||
},
|
||||
/*@
|
||||
clearCache <f> clear cached results
|
||||
() -> <u>
|
||||
() -> <u> ...
|
||||
@*/
|
||||
clearCache: function() {
|
||||
cache = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue