forked from 0x2620/oxjs
cleanup docs, fix children/find calls
This commit is contained in:
parent
a98902f165
commit
b9e80c9d75
88 changed files with 157 additions and 253 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.API <o> bind remote api to object
|
||||
Ox.API <f> bind remote api to object
|
||||
options <o> Options object
|
||||
timeout <n|60000> request timeout
|
||||
url <s> request url
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.App <f> Basic application instance that communicates with a JSON API
|
||||
Ox.App <f:Ox.Element> Basic application instance that communicates with a JSON API
|
||||
() -> <f> App object
|
||||
(options) -> <f> App object
|
||||
options <o> Options object
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Ox.Clipboard <o> Basic clipboard handler
|
|||
paste <f> Paste data from clipboard
|
||||
() -> <*> Clipboard data
|
||||
@*/
|
||||
Ox.Clipboard = function() {
|
||||
Ox.Clipboard = (function() {
|
||||
var clipboard = {};
|
||||
return {
|
||||
_print: function() {
|
||||
|
|
@ -24,4 +24,4 @@ Ox.Clipboard = function() {
|
|||
return type in clipboard;
|
||||
}
|
||||
};
|
||||
}();
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
// 0, 1, 2, etc, so that append would append 0, and appendTo
|
||||
// would append (length - 1)?
|
||||
/*@
|
||||
Ox.Container <f> Container element
|
||||
Ox.Container <f:Ox.Element> Container element
|
||||
() -> <o> Container object
|
||||
(options) -> <o> Container object
|
||||
(options, self) -> <o> Container object
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.Element <function:Ox.JQueryElement> Basic UI element object
|
||||
Ox.Element <f:Ox.JQueryElement> Basic UI element object
|
||||
# Usage --------------------------------------------------------------------
|
||||
(element) -> <object> UI element
|
||||
(options) -> <object> UI element
|
||||
|
|
@ -398,7 +398,7 @@ Ox.Element = function(options, self) {
|
|||
() -> <obj> This element
|
||||
@*/
|
||||
that.remove = function(remove) {
|
||||
remove !== false && that.$element.find('.OxElement').each(function() {
|
||||
remove !== false && that.find('.OxElement').each(function() {
|
||||
var oxid = $(this).data('oxid'),
|
||||
element = Ox.UI.elements[oxid];
|
||||
element && element.remove(false);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.GarbageCollection <function> GarbageCollection
|
||||
Ox.GarbageCollection <f> GarbageCollection
|
||||
() -> <o> run garbage collection
|
||||
debug() -> {} output debug information
|
||||
@*/
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
/***
|
||||
Ox.History
|
||||
***/
|
||||
'use strict';
|
||||
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.JQueryElement <function> Wrapper for jQuery
|
||||
Ox.JQueryElement <f> Wrapper for jQuery
|
||||
($element) -> <object> Wrapped jQuery DOM element
|
||||
$element <object> jQuery DOM Element
|
||||
@*/
|
||||
|
||||
// fixme: now that children(), find() work, change code to call find directly.
|
||||
|
||||
Ox.JQueryElement = function($element) {
|
||||
var that = this;
|
||||
//@ id <number> Unique id
|
||||
|
|
@ -50,4 +47,4 @@ Ox.methods($('<div>'), true).forEach(function(method) {
|
|||
&& Ox.UI.elements[id = ret.data('oxid')]
|
||||
? Ox.UI.elements[id] : ret;
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue