forked from 0x2620/oxjs
document Ox..data
This commit is contained in:
parent
6f183f3b49
commit
a97170ea5b
1 changed files with 14 additions and 5 deletions
|
|
@ -92,9 +92,9 @@ Ox.$ = Ox.element = function(value) {
|
||||||
attr <f> Gets or sets an attribute
|
attr <f> Gets or sets an attribute
|
||||||
(key) -> <s> Value
|
(key) -> <s> Value
|
||||||
(key, value) -> <o> This element
|
(key, value) -> <o> This element
|
||||||
({key: value, key1: value1, ...}) -> <o> This element
|
({key0: value0, key1: value1, ...}) -> <o> This element
|
||||||
key <str> Attribute name
|
key <s> Attribute name
|
||||||
value <str> Attribute value
|
value <s> Attribute value
|
||||||
@*/
|
@*/
|
||||||
attr: function() {
|
attr: function() {
|
||||||
var ret, that = this;
|
var ret, that = this;
|
||||||
|
|
@ -126,8 +126,8 @@ Ox.$ = Ox.element = function(value) {
|
||||||
(key) -> <s> Value
|
(key) -> <s> Value
|
||||||
(key, value) -> <o> This element
|
(key, value) -> <o> This element
|
||||||
({key0: value0, key1: value1, ...}) -> <o> This element
|
({key0: value0, key1: value1, ...}) -> <o> This element
|
||||||
key <str> Attribute name
|
key <s> Attribute name
|
||||||
value <str> Attribute value
|
value <s> Attribute value
|
||||||
@*/
|
@*/
|
||||||
css: function() {
|
css: function() {
|
||||||
var ret, that = this;
|
var ret, that = this;
|
||||||
|
|
@ -141,6 +141,15 @@ Ox.$ = Ox.element = function(value) {
|
||||||
}
|
}
|
||||||
return ret;
|
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() {
|
data: function() {
|
||||||
var ret;
|
var ret;
|
||||||
if (arguments.length == 0) {
|
if (arguments.length == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue