dd-plugin.js.html revision 4fcbec6145d16637205990699912fb90f6a3807c
<html>
<head>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<h3>dd-plugin <span class="subtitle">3.00PR1</span></h3>
<p>
> dd-plugin.js (source view)
</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>
<div id="srcout">
<style>
#doc3 #classopts { display:none; }
</style>
<div class="highlight" ><pre> <span class="c">/**</span>
<span class="c"> * This is a simple Drag plugin that can be attached to a Node via the plug method.</span>
<span class="c"> * @module dd-plugin</span>
<span class="c"> * @submodule dd-plugin</span>
<span class="c"> */</span>
<span class="c">/**</span>
<span class="c"> * This is a simple Drag plugin that can be attached to a Node via the plug method.</span>
<span class="c"> * @class DragPlugin</span>
<span class="c"> * @extends Drag</span>
<span class="c"> * @constructor</span>
<span class="c"> */</span>
<span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span> <span class="o">||</span> <span class="o">{};</span>
<span class="k">var</span> <span class="nx">Drag</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">config</span><span class="o">)</span> <span class="o">{</span>
<span class="nx">config</span><span class="o">.</span><span class="nx">node</span> <span class="o">=</span> <span class="nx">config</span><span class="o">.</span><span class="nx">owner</span><span class="o">;</span>
<span class="nx">Drag</span><span class="o">.</span><span class="nx">superclass</span><span class="o">.</span><span class="nx">constructor</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span>
<span class="o">};</span>
<span class="c">/**</span>
<span class="c"> * @property NAME</span>
<span class="c"> * @description dd-plugin</span>
<span class="c"> * @type {String}</span>
<span class="c"> */</span>
<span class="nx">Drag</span><span class="o">.</span><span class="nx">NAME</span> <span class="o">=</span> <span class="s2">"dd-plugin"</span><span class="o">;</span>
<span class="c">/**</span>
<span class="c"> * @property NS</span>
<span class="c"> * @description The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd;</span>
<span class="c"> * @type {String}</span>
<span class="c"> */</span>
<span class="nx">Drag</span><span class="o">.</span><span class="nx">NS</span> <span class="o">=</span> <span class="s2">"dd"</span><span class="o">;</span>
<span class="nx">Y</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">Drag</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DD</span><span class="o">.</span><span class="nx">Drag</span><span class="o">);</span>
<span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span><span class="o">.</span><span class="nx">Drag</span> <span class="o">=</span> <span class="nx">Drag</span><span class="o">;</span>
</pre></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>
</div>
</div>
<div id="ft">
<hr />
Copyright © 2008 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>