Skip to content

Commit

Permalink
Merge pull request #7 from uzairfarooq/dev
Browse files Browse the repository at this point in the history
Release v1.1.2
  • Loading branch information
uzairfarooq committed Apr 16, 2014
2 parents 56dee08 + dd0ebf5 commit cd545fa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

arrive.js provides events to watch for DOM elements creation and removal. It makes use of [Mutation Observers](https://developer.mozilla.org/en/docs/Web/API/MutationObserver) internally.

[Download arrive-1.1.1.min.js](https://raw.githubusercontent.com/uzairfarooq/arrive/master/releases/arrive-1.1.1.min.js) (latest)
[Download arrive-1.1.2.min.js](https://raw.githubusercontent.com/uzairfarooq/arrive/master/releases/arrive-1.1.2.min.js) (latest)

## Usage
**The library does not depend on jQuery, you can replace jQuery elements in the examples below with pure javascript elements and it would work fine.**
Expand Down
16 changes: 16 additions & 0 deletions releases/arrive-1.1.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/arrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
* arrive.js
* v1.1.1
* v1.1.2
* https://github.com/uzairfarooq/arrive
* MIT licensed
*
Expand Down Expand Up @@ -117,7 +117,7 @@
});

function toArray(elements) {
if (elements[0] === undefined) {
if (typeof elements.length !== "number") {
elements = [elements];
}
return elements;
Expand Down

0 comments on commit cd545fa

Please sign in to comment.