jquery-scrollstop
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,6 +0,20 @@ | ||
/*! | ||
* jQuery Scrollstop Plugin v1.1.0 | ||
* https://github.com/ssorallen/jquery-scrollstop | ||
*/ | ||
(function($) { | ||
// jQuery Scrollstop Plugin v1.2.0 | ||
// https://github.com/ssorallen/jquery-scrollstop | ||
(function (factory) { | ||
// UMD[2] wrapper for jQuery plugins to work in AMD or in CommonJS. | ||
// | ||
// [2] https://github.com/umdjs/umd | ||
if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(['jquery'], factory); | ||
} else if (typeof exports === 'object') { | ||
// Node/CommonJS | ||
module.exports = factory(require('jquery')); | ||
} else { | ||
// Browser globals | ||
factory(jQuery); | ||
} | ||
}(function ($) { | ||
// $.event.dispatch was undocumented and was deprecated in jQuery 1.7[1]. It | ||
@@ -77,3 +91,2 @@ // was replaced by $.event.handle in jQuery 1.9. | ||
}; | ||
})(jQuery); | ||
})); |
{ | ||
"name": "jquery-scrollstop", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A jQuery plugin that adds custom scroll start and scroll stop events.", | ||
"main": "jquery.scrollstop.js", | ||
"main": "jquery.scrollstop.min.js", | ||
"scripts": { | ||
"build": "uglifyjs --compres -o jquery.scrollstop.min.js -- jquery.scrollstop.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -34,3 +35,6 @@ }, | ||
}, | ||
"homepage": "https://github.com/ssorallen/jquery-scrollstop" | ||
"homepage": "https://github.com/ssorallen/jquery-scrollstop", | ||
"devDependencies": { | ||
"uglify-js": "^2.4.16" | ||
} | ||
} |
@@ -10,3 +10,4 @@ jquery-scrollstop | ||
The example shows a small box in the upper left that says "SCROLLING" and | ||
colors the body different colors when scrolling: http://ssorallen.com/jquery-scrollstop/ | ||
colors the body different colors when scrolling: | ||
[http://ssorallen.com/jquery-scrollstop/](http://ssorallen.com/jquery-scrollstop/) | ||
@@ -63,6 +64,3 @@ ## Usage | ||
James Padolsey's jQuery scrollstop plugin that fires an event when scrolling | ||
stops for minimum amount of time. | ||
Originally code copied from | ||
http://james.padolsey.com/javascript/special-scroll-events-for-jquery/ | ||
Originally code taken from James Padolsey's blog: | ||
[http://james.padolsey.com/javascript/special-scroll-events-for-jquery/](http://james.padolsey.com/javascript/special-scroll-events-for-jquery/) |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
34860
7
78
1
2
65