Object.html revision 4fcbec6145d16637205990699912fb90f6a3807c
<html>
<head>
<title>API: yui Object (YUI Library)</title>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<h3>yui <span class="subtitle">3.00PR1</span></h3>
<p>
> Object
</p>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<form name="yui-classopts-form">
<span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> <label for="showprivate">Show Private</label></span>
<span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> <label for="showprotected">Show Protected</label></span>
<span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> <label for="showdeprecated">Show Deprecated</label></span>
</form>
<h2>
<code>static</code>
Class <b>Object</b>
<span class="extends">
</span>
<span class="extends">
</span>
</code>
</h2>
<!-- class tree goes here -->
<div class="summary description">
Y.Object(o) returns a new object based upon the supplied object.
</div>
<div class="section constructor details">
<h3 id="constructor">Constructor</h3>
<div class="content">
<div class="detail">
<strong>Object</strong>
<code>
(
o
)
</code>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>o
<object>
</code>
the supplier object
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="section method details">
<h3 id="methods">Methods</h3>
<div class="content">
<div class="">
<h4>
<a name="method_each">each</a></h4>
<div class="detail">
<code>
YUI
<strong>each</strong>
(
o
,
f
,
c
,
proto
)
</code>
<div class="description">
Executes a function on each item. The function
receives the value, the key, and the object
as paramters (in that order).
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>o <object></code>
the object to iterate
</dd>
<dd>
<code>f <function></code>
the function to execute
</dd>
<dd>
<code>c <object></code>
the execution context
</dd>
<dd>
<code>proto <boolean></code>
include proto
</dd>
</dl>
<dl>
<dt>Returns:
<code>
YUI
</code></dt>
<dd>the YUI instance</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_keys">keys</a></h4>
<div class="detail">
<code>
string[]
<strong>keys</strong>
(
o
)
</code>
<div class="description">
Returns an array containing the object's keys
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>o <object></code>
an object
</dd>
</dl>
<dl>
<dt>Returns:
<code>
string[]
</code></dt>
<dd>the keys</dd>
</dl>
</div>
</div>
<hr />
</div>
<div class=" deprecated">
<h4>
<a name="method_owns">owns</a></h4>
<div class="detail">
<code>
boolean
<strong>owns</strong>
(
o
)
</code>
<div class="description">
Determines whether or not the property was added
to the object instance. Returns false if the property is not present
in the object, or was inherited from the prototype.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>o <any></code>
The object being testing
</dd>
</dl>
<dl>
<dt>Returns:
<code>
boolean
</code></dt>
<dd>true if the object has the property on the instance</dd>
</dl>
<div class="deprecated">
wrapper for the native implementation. Use the native implementation
directly instead.
</div>
</div>
</div>
<hr />
</div>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Methods</h4>
<ul class="content">
<li class=""><!--<code>YUI</code>-->
<a href="#method_each">each</a>
</li>
<li class=""><!--<code>string[]</code>-->
<a href="#method_keys">keys</a>
</li>
<li class=" deprecated"><!--<code>boolean</code>-->
<a href="#method_owns">owns</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright © 2008 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>