document Ox..data

This commit is contained in:
rolux 2013-12-06 21:59:26 +01:00
parent 6f183f3b49
commit a97170ea5b

View file

@ -92,9 +92,9 @@ Ox.$ = Ox.element = function(value) {
attr <f> Gets or sets an attribute
(key) -> <s> Value
(key, value) -> <o> This element
({key: value, key1: value1, ...}) -> <o> This element
key <str> Attribute name
value <str> Attribute value
({key0: value0, key1: value1, ...}) -> <o> This element
key <s> Attribute name
value <s> Attribute value
@*/
attr: function() {
var ret, that = this;
@ -126,8 +126,8 @@ Ox.$ = Ox.element = function(value) {
(key) -> <s> Value
(key, value) -> <o> This element
({key0: value0, key1: value1, ...}) -> <o> This element
key <str> Attribute name
value <str> Attribute value
key <s> Attribute name
value <s> Attribute value
@*/
css: function() {
var ret, that = this;
@ -141,6 +141,15 @@ Ox.$ = Ox.element = function(value) {
}
return ret;
},
/*@
data <f> Gets or sets data
() -> <o> All data
(key) -> <s> Value
(key, value) -> <o> This element
({key0: value0, key1: value1, ...}) -> <o> This element
key <s> Property
value <*> Value
@*/
data: function() {
var ret;
if (arguments.length == 0) {