Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shira-374 committed Oct 12, 2014
1 parent 55763fe commit dc6ea7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ List of all available options.
<td>required</td>
<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:
<ul>
<li><strong>0</strong> - array of focus objects (please refer to argument #0 in the "Callbacks arguments" section)</li>
<li><strong>0</strong> - array of focus objects (please refer to argument #0 in the "Callback arguments" section)</li>
<li><strong>1</strong> - the current view (an object with the following keys: <code>top, bottom</code>)</li>
<li><strong>2</strong> - an instance of <code>Shira.ScrollWatch.Watcher</code></li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/scrollwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ var Shira;
* @returns {ScrollWatch.Watcher|Boolean} false if no sections were matched
*/
$.fn.scrollWatch = function (callback, options) {
if (this.length > 1) {
if (this.length >= 1) {
var watcher = new ScrollWatch.Watcher(this, callback, options);
watcher.attach();

Expand All @@ -542,7 +542,7 @@ var Shira;
* @param {Object} options watcher option map
*/
$.fn.scrollWatchMapTo = function(items, activeClass, options) {
if (this.length > 1) {
if (this.length >= 1) {
if ('string' === typeof items) {
items = $(items);
}
Expand Down

0 comments on commit dc6ea7e

Please sign in to comment.