uzairfarooq / arrive

Watch for DOM elements creation and removal
MIT License
872 stars 99 forks source link

add a argument to the callback to support es2015 arrow function #50

Closed youngyou closed 8 years ago

uzairfarooq commented 8 years ago

The same needs to be done on line 343: return callback.call(existing[0].elem);

Also, if you can add one or two test cases for the new feature it'll be great. The test cases file is /tests/spec/arriveSpec.js.

youngyou commented 8 years ago

A new PR, #51