Skip to content

Commit dc6ea7e

Browse files
committed
Typos
1 parent 55763fe commit dc6ea7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ List of all available options.
209209
<td>required</td>
210210
<td>Function to invoke when a resolution is needed. It must choose and return <strong>a single focus object</strong>. The following arguments are passed to it:
211211
<ul>
212-
<li><strong>0</strong> - array of focus objects (please refer to argument #0 in the "Callbacks arguments" section)</li>
212+
<li><strong>0</strong> - array of focus objects (please refer to argument #0 in the "Callback arguments" section)</li>
213213
<li><strong>1</strong> - the current view (an object with the following keys: <code>top, bottom</code>)</li>
214214
<li><strong>2</strong> - an instance of <code>Shira.ScrollWatch.Watcher</code></li>
215215
</ul>

src/scrollwatch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ var Shira;
523523
* @returns {ScrollWatch.Watcher|Boolean} false if no sections were matched
524524
*/
525525
$.fn.scrollWatch = function (callback, options) {
526-
if (this.length > 1) {
526+
if (this.length >= 1) {
527527
var watcher = new ScrollWatch.Watcher(this, callback, options);
528528
watcher.attach();
529529

@@ -542,7 +542,7 @@ var Shira;
542542
* @param {Object} options watcher option map
543543
*/
544544
$.fn.scrollWatchMapTo = function(items, activeClass, options) {
545-
if (this.length > 1) {
545+
if (this.length >= 1) {
546546
if ('string' === typeof items) {
547547
items = $(items);
548548
}

0 commit comments

Comments
 (0)