Skip to content

Commit

Permalink
#9, adds support for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeaudry committed Jun 15, 2018
1 parent 18a61d7 commit d994af0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
.gh-pages
.idea
.DS_STORE
npm-debug.log
12 changes: 9 additions & 3 deletions dist/appear.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* appear.js 1.1.0 */
appear = (function(){
(function(window){
'use strict';
var scrollLastPos = null, scrollTimer = 0, scroll = {};

Expand Down Expand Up @@ -173,7 +173,7 @@ appear = (function(){
}
}

return function(obj) {
var appear = function(obj) {
obj = obj || {};

// assign the fn to execute when a node is visible
Expand Down Expand Up @@ -244,6 +244,12 @@ appear = (function(){
};

};

if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = appear;
} else {
window.appear = appear;
}
}()(obj));
};
}());
}(this));
2 changes: 1 addition & 1 deletion dist/appear.min.js

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

12 changes: 9 additions & 3 deletions lib/appear.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
appear = (function(){
(function(window){
'use strict';
var scrollLastPos = null, scrollTimer = 0, scroll = {};

Expand Down Expand Up @@ -172,7 +172,7 @@ appear = (function(){
}
}

return function(obj) {
var appear = function(obj) {
obj = obj || {};

// assign the fn to execute when a node is visible
Expand Down Expand Up @@ -243,6 +243,12 @@ appear = (function(){
};

};

if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = appear;
} else {
window.appear = appear;
}
}()(obj));
};
}());
}(this));

0 comments on commit d994af0

Please sign in to comment.