Skip to content
This repository was archived by the owner on Mar 20, 2018. It is now read-only.

Commit 2f8e5e4

Browse files
committed
Do not overwrite whole object with prototype, added QUnit API coverage
1 parent 9da2054 commit 2f8e5e4

File tree

6 files changed

+2524
-172
lines changed

6 files changed

+2524
-172
lines changed

index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,32 @@ <h2>Options</h2>
165165
<section id="api">
166166
<h2>Public methods</h2>
167167
<dl>
168+
<dt>.align()</dt>
169+
<dd>
170+
Repositions the window to the center of the modal window parent.
171+
</dd>
168172
<dt>.open([content][, callback])</dt>
169173
<dd>
170174
Opens the modal window. <var>Content</var> Passed to the <code>.update()</code> method.
171175
<var>Callback</var> A function to call once the window has opened.
172176
</dd>
173-
<dt>.close([callback])</dt>
174-
<dd>
175-
Closes the modal window and removes the content. <var>Callback</var> A function to call once the
176-
window has closed.
177-
</dd>
178177
<dt>.update(content[, callback])</dt>
179178
<dd>
180179
Updates the contents of the modal window. <var>Content</var> Set the content of the modal window
181180
via jQuery's <a href="http://api.jquery.com/html/#html2">.html()</a> method. <var>Callback</var> A
182181
function to call once the window has been updated. The <code>.align()</code> method will be called
183182
if the window is open.
184183
</dd>
185-
<dt>.align()</dt>
186-
<dd>
187-
Repositions the window to the center of the modal window parent.
188-
</dd>
189184
<dt>.resize(width, height)</dt>
190185
<dd>
191186
Resizes the modal window content area. <var>Width</var> and <var>Height</var> can be any unit
192187
compatible with the <a href="http://api.jquery.com/category/dimensions/">jQuery Dimensions</a> API.
193188
</dd>
189+
<dt>.hide([callback])</dt>
190+
<dd>
191+
Hides the modal window and removes event listeners. <var>Callback</var> A function to call once the
192+
window has closed.
193+
</dd>
194194
<dt>A note on callbacks:</dt>
195195
<dd>
196196
All callbacks will be called from the scope of the modal instance, so that <code>this</code> will
@@ -206,7 +206,7 @@ <h2>Public methods</h2>
206206
<img style="position:absolute; top:0; right:0; border:0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
207207
</a>
208208

209-
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
209+
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
210210
<script src="js/modal.js"></script>
211211
<script>
212212
$(function()

0 commit comments

Comments
 (0)