Skip to content

Commit 5614381

Browse files
authored
Merge branch 'master' into master
2 parents 5c7682c + 4232f01 commit 5614381

File tree

7 files changed

+37
-34
lines changed

7 files changed

+37
-34
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@ language: node_js
22
node_js:
33
- "stable"
44
before_script:
5-
- npm install -g grunt-cli
5+
- npm install -g grunt-cli
6+
notifications:
7+
webhooks:
8+
urls:
9+
- https://webhooks.gitter.im/e/7b6dee6d870a12710299
10+
on_success: change # options: [always|never|change] default: always
11+
on_failure: always # options: [always|never|change] default: always
12+
on_start: never # options: [always|never|change] default: always

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(grunt) {
2929
}
3030
},
3131
files: {
32-
src: ['Grunfile.js', 'jquery.jscroll.js']
32+
src: ['Gruntfile.js', 'jquery.jscroll.js']
3333
}
3434
},
3535

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
Official site at [jscroll.com](http://jscroll.com/).
99

10-
* Copyright © 2011-2015, [Philip Klauzinski](http://gui.ninja)
11-
* Current Version: 2.3.5
10+
* Copyright © 2011-2017, [Philip Klauzinski](http://webtopian.com)
11+
* Current Version: 2.3.7
1212
* Dual licensed under the MIT and GPL Version 2 licenses.
1313
* http://jscroll.com/#license
1414
* http://www.opensource.org/licenses/mit-license.php
@@ -45,7 +45,7 @@ $('.jscroll').jscroll({
4545
* `autoTrigger (true)` - When set to true, triggers the loading of the next set of content automatically when the user scrolls to the bottom of the containing element. When set to false, the required next link will trigger the loading of the next set of content when clicked.
4646
* `autoTriggerUntil (false)` - Set to an integer great than 0 to turn off `autoTrigger` of paging after the specified number of pages. Requires `autoTrigger` to be `true`.
4747
* `loadingHtml ('<small>Loading...</small>')` - The HTML to show at the bottom of the content while loading the next set.
48-
* `loadingFunction` (false) - A JavaScript function to run after the loadingHtml has been drawn. Makes it possible to fire up a [jspin.js](https://github.com/fgnass/spin.js/) spinner or other effect
48+
* `loadingFunction` (false) - A JavaScript function to run after the loadingHtml has been drawn.
4949
* `padding (0)` - The distance from the bottom of the scrollable content at which to trigger the loading of the next set of content. This only applies when autoTrigger is set to true.
5050
* `nextSelector ('a:last')` - The selector to use for finding the link which contains the href pointing to the next set of content. If this selector is not found, or if it does not contain a href attribute, jScroll will self-destroy and unbind from the element upon which it was called.
5151
* `contentSelector ('')` - A convenience selector for loading only part of the content in the response for the next set of content. This selector will be ignored if left blank and will apply the entire response to the DOM.

bower.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "jscroll",
3-
"version": "2.3.5",
43
"homepage": "http://jscroll.com",
54
"authors": [
65
{
76
"name": "Philip Klauzinski",
8-
"homepage": "http://gui.ninja"
7+
"homepage": "http://webtopian.com"
98
}
109
],
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/pklauzinski/jscroll"
13+
},
1114
"description": "jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging",
1215
"main": "jquery.jscroll.js",
1316
"dependencies": {

jquery.jscroll.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
/*!
22
* jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging
3-
* http://jscroll.com/
3+
* @see @link{http://jscroll.com}
44
*
5-
* Copyright 2011-2013, Philip Klauzinski
6-
* http://klauzinski.com/
7-
* Dual licensed under the MIT and GPL Version 2 licenses.
8-
* http://jscroll.com/#license
9-
* http://www.opensource.org/licenses/mit-license.php
10-
* http://www.gnu.org/licenses/gpl-2.0.html
11-
*
12-
* @author Philip Klauzinski
13-
* @version 2.3.5
5+
* @copyright 2011-2017, Philip Klauzinski
6+
* @license Dual licensed under the MIT and GPL Version 2 licenses.
7+
* @author Philip Klauzinski (http://webtopian.com)
8+
* @version 2.3.7
149
* @requires jQuery v1.4.3+
1510
* @preserve
1611
*/
@@ -169,7 +164,8 @@
169164
});
170165

171166
return $e.animate({scrollTop: $inner.outerHeight()}, 0, function() {
172-
$inner.find('div.jscroll-added').last().load(data.nextHref, function(r, status) {
167+
var nextHref = data.nextHref;
168+
$inner.find('div.jscroll-added').last().load(nextHref, function(r, status) {
173169
if (status === 'error') {
174170
return _destroy();
175171
}
@@ -179,7 +175,7 @@
179175
$('.jscroll-next-parent', $e).remove(); // Remove the previous next link now that we have a new one
180176
_checkNextHref();
181177
if (_options.callback) {
182-
_options.callback.call(this);
178+
_options.callback.call(this, nextHref);
183179
}
184180
_debug('dir', data);
185181
});
@@ -232,4 +228,4 @@
232228
});
233229
};
234230

235-
})(jQuery);
231+
})(jQuery);

jquery.jscroll.min.js

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "jscroll",
3-
"version": "2.3.5",
3+
"version": "2.3.7",
44
"description": "jQuery plugin for infinite scrolling / auto-paging.",
55
"main": "jquery.jscroll.js",
66
"scripts": {
7-
"test": "grunt jshint"
7+
"test": "grunt jshint",
8+
"build": "grunt uglify"
89
},
910
"repository": {
1011
"type": "git",
@@ -23,7 +24,7 @@
2324
],
2425
"author": {
2526
"name": "Philip Klauzinski",
26-
"url": "http://gui.ninja"
27+
"url": "http://webtopian.com"
2728
},
2829
"license": "MIT",
2930
"bugs": {
@@ -34,7 +35,7 @@
3435
"jquery": "^1.7.4"
3536
},
3637
"devDependencies": {
37-
"grunt": "^0.4.5",
38+
"grunt": "^1.0.1",
3839
"grunt-contrib-jshint": "^0.11.3",
3940
"grunt-contrib-uglify": "^0.9.2"
4041
}

0 commit comments

Comments
 (0)