appear-animation
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -28,3 +28,2 @@ var OnAppear = require('on-appear'); | ||
var el = this.elements[i]; | ||
this.prepare(el); | ||
this.register(el); | ||
@@ -34,7 +33,7 @@ } | ||
prepare: function() { | ||
prepare: function(el, instance) { | ||
// To implement | ||
}, | ||
run: function(el) { | ||
run: function(el, instance) { | ||
// To implement | ||
@@ -49,5 +48,8 @@ }, | ||
callback: function() { | ||
_this.run(el); | ||
_this.run(el, this); | ||
} | ||
}); | ||
this.prepare(el, instance); | ||
this.instances.push(instance); | ||
}, | ||
@@ -54,0 +56,0 @@ |
{ | ||
"name": "appear-animation", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3040
49