From 7875440657165105fd8cac8e9703c20b510ca9e9 Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Thu, 19 Jan 2017 16:09:26 +0100 Subject: [PATCH 1/3] Added nextHref as argument of callback (#120) * Added nextHref as argument of callback * Updated version --- Gruntfile.js | 2 +- bower.json | 2 +- jquery.jscroll.js | 9 +++++---- jquery.jscroll.min.js | 6 +++--- package.json | 5 +++-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7774d34..a04ff14 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,7 +29,7 @@ module.exports = function(grunt) { } }, files: { - src: ['Grunfile.js', 'jquery.jscroll.js'] + src: ['Gruntfile.js', 'jquery.jscroll.js'] } }, diff --git a/bower.json b/bower.json index 9617005..ff227ec 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jscroll", - "version": "2.3.5", + "version": "2.3.6", "homepage": "http://jscroll.com", "authors": [ { diff --git a/jquery.jscroll.js b/jquery.jscroll.js index 06fb462..5ff9546 100644 --- a/jquery.jscroll.js +++ b/jquery.jscroll.js @@ -2,7 +2,7 @@ * jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging * http://jscroll.com/ * - * Copyright 2011-2013, Philip Klauzinski + * Copyright 2011-2016, Philip Klauzinski * http://klauzinski.com/ * Dual licensed under the MIT and GPL Version 2 licenses. * http://jscroll.com/#license @@ -10,7 +10,7 @@ * http://www.gnu.org/licenses/gpl-2.0.html * * @author Philip Klauzinski - * @version 2.3.5 + * @version 2.3.6 * @requires jQuery v1.4.3+ * @preserve */ @@ -165,7 +165,8 @@ }); return $e.animate({scrollTop: $inner.outerHeight()}, 0, function() { - $inner.find('div.jscroll-added').last().load(data.nextHref, function(r, status) { + var nextHref = data.nextHref; + $inner.find('div.jscroll-added').last().load(nextHref, function(r, status) { if (status === 'error') { return _destroy(); } @@ -175,7 +176,7 @@ $('.jscroll-next-parent', $e).remove(); // Remove the previous next link now that we have a new one _checkNextHref(); if (_options.callback) { - _options.callback.call(this); + _options.callback.call(this, nextHref); } _debug('dir', data); }); diff --git a/jquery.jscroll.min.js b/jquery.jscroll.min.js index 4f099d1..54d574e 100644 --- a/jquery.jscroll.min.js +++ b/jquery.jscroll.min.js @@ -2,7 +2,7 @@ * jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging * http://jscroll.com/ * - * Copyright 2011-2013, Philip Klauzinski + * Copyright 2011-2016, Philip Klauzinski * http://klauzinski.com/ * Dual licensed under the MIT and GPL Version 2 licenses. * http://jscroll.com/#license @@ -10,8 +10,8 @@ * http://www.gnu.org/licenses/gpl-2.0.html * * @author Philip Klauzinski - * @version 2.3.5 + * @version 2.3.6 * @requires jQuery v1.4.3+ * @preserve */ -!function(a){"use strict";a.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"Loading...",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var b=function(b,c){var d=b.data("jscroll"),e="function"==typeof c?{callback:c}:c,f=a.extend({},a.jscroll.defaults,e,d||{}),g="visible"===b.css("overflow-y"),h=b.find(f.nextSelector).first(),i=a(window),j=a("body"),k=g?i:b,l=a.trim(h.attr("href")+" "+f.contentSelector),m=function(){var b=a(f.loadingHtml).filter("img").attr("src");if(b){var c=new Image;c.src=b}},n=function(){b.find(".jscroll-inner").length||b.contents().wrapAll('
')},o=function(a){var b;f.pagingSelector?a.closest(f.pagingSelector).hide():(b=a.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),b.length||a.wrap('
').parent().hide())},p=function(){return k.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},q=function(){if(b.is(":visible")){n();var a=b.find("div.jscroll-inner").first(),c=b.data("jscroll"),d=parseInt(b.css("borderTopWidth"),10),e=isNaN(d)?0:d,h=parseInt(b.css("paddingTop"),10)+e,i=g?k.scrollTop():b.offset().top,j=a.length?a.offset().top:0,l=Math.ceil(i-j+k.height()+h);if(!c.waiting&&l+f.padding>=a.outerHeight())return u("info","jScroll:",a.outerHeight()-l,"from bottom. Loading next request..."),t()}},r=function(a){return a=a||b.data("jscroll"),a&&a.nextHref?(s(),!0):(u("warn","jScroll: nextSelector not found - destroying"),p(),!1)},s=function(){var c=b.find(f.nextSelector).first();if(c.length)if(f.autoTrigger&&(f.autoTriggerUntil===!1||f.autoTriggerUntil>0)){o(c);var d=j.height()-b.offset().top,e=b.height()0?i.height()-(b.offset().top-a(window).scrollTop()):i.height();g>=e&&q(),k.unbind(".jscroll").bind("scroll.jscroll",function(){return q()}),f.autoTriggerUntil>0&&f.autoTriggerUntil--}else k.unbind(".jscroll"),c.bind("click.jscroll",function(){return o(c),t(),!1})},t=function(){var c=b.find("div.jscroll-inner").first(),d=b.data("jscroll");return d.waiting=!0,c.append('
').children(".jscroll-added").last().html('
'+f.loadingHtml+"
").promise().done(function(){f.loadingFunction&&f.loadingFunction()}),b.animate({scrollTop:c.outerHeight()},0,function(){c.find("div.jscroll-added").last().load(d.nextHref,function(c,e){if("error"===e)return p();var g=a(this).find(f.nextSelector).first();d.waiting=!1,d.nextHref=g.attr("href")?a.trim(g.attr("href")+" "+f.contentSelector):!1,a(".jscroll-next-parent",b).remove(),r(),f.callback&&f.callback.call(this),u("dir",d)})})},u=function(a){if(f.debug&&"object"==typeof console&&("object"==typeof a||"function"==typeof console[a]))if("object"==typeof a){var b=[];for(var c in a)"function"==typeof console[c]?(b=a[c].length?a[c]:[a[c]],console[c].apply(console,b)):console.log.apply(console,b)}else console[a].apply(console,Array.prototype.slice.call(arguments,1))};return b.data("jscroll",a.extend({},d,{initialized:!0,waiting:!1,nextHref:l})),n(),m(),s(),a.extend(b.jscroll,{destroy:p}),b};a.fn.jscroll=function(c){return this.each(function(){var d,e=a(this),f=e.data("jscroll");f&&f.initialized||(d=new b(e,c))})}}(jQuery); \ No newline at end of file +!function(a){"use strict";a.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"Loading...",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var b=function(b,c){var d=b.data("jscroll"),e="function"==typeof c?{callback:c}:c,f=a.extend({},a.jscroll.defaults,e,d||{}),g="visible"===b.css("overflow-y"),h=b.find(f.nextSelector).first(),i=a(window),j=a("body"),k=g?i:b,l=a.trim(h.attr("href")+" "+f.contentSelector),m=function(){var b=a(f.loadingHtml).filter("img").attr("src");if(b){var c=new Image;c.src=b}},n=function(){b.find(".jscroll-inner").length||b.contents().wrapAll('
')},o=function(a){var b;f.pagingSelector?a.closest(f.pagingSelector).hide():(b=a.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),b.length||a.wrap('
').parent().hide())},p=function(){return k.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},q=function(){if(b.is(":visible")){n();var a=b.find("div.jscroll-inner").first(),c=b.data("jscroll"),d=parseInt(b.css("borderTopWidth"),10),e=isNaN(d)?0:d,h=parseInt(b.css("paddingTop"),10)+e,i=g?k.scrollTop():b.offset().top,j=a.length?a.offset().top:0,l=Math.ceil(i-j+k.height()+h);if(!c.waiting&&l+f.padding>=a.outerHeight())return u("info","jScroll:",a.outerHeight()-l,"from bottom. Loading next request..."),t()}},r=function(a){return a=a||b.data("jscroll"),a&&a.nextHref?(s(),!0):(u("warn","jScroll: nextSelector not found - destroying"),p(),!1)},s=function(){var c=b.find(f.nextSelector).first();if(c.length)if(f.autoTrigger&&(f.autoTriggerUntil===!1||f.autoTriggerUntil>0)){o(c);var d=j.height()-b.offset().top,e=b.height()0?i.height()-(b.offset().top-a(window).scrollTop()):i.height();e<=g&&q(),k.unbind(".jscroll").bind("scroll.jscroll",function(){return q()}),f.autoTriggerUntil>0&&f.autoTriggerUntil--}else k.unbind(".jscroll"),c.bind("click.jscroll",function(){return o(c),t(),!1})},t=function(){var c=b.find("div.jscroll-inner").first(),d=b.data("jscroll");return d.waiting=!0,c.append('
').children(".jscroll-added").last().html('
'+f.loadingHtml+"
").promise().done(function(){f.loadingFunction&&f.loadingFunction()}),b.animate({scrollTop:c.outerHeight()},0,function(){var e=d.nextHref;c.find("div.jscroll-added").last().load(e,function(c,g){if("error"===g)return p();var h=a(this).find(f.nextSelector).first();d.waiting=!1,d.nextHref=!!h.attr("href")&&a.trim(h.attr("href")+" "+f.contentSelector),a(".jscroll-next-parent",b).remove(),r(),f.callback&&f.callback.call(this,e),u("dir",d)})})},u=function(a){if(f.debug&&"object"==typeof console&&("object"==typeof a||"function"==typeof console[a]))if("object"==typeof a){var b=[];for(var c in a)"function"==typeof console[c]?(b=a[c].length?a[c]:[a[c]],console[c].apply(console,b)):console.log.apply(console,b)}else console[a].apply(console,Array.prototype.slice.call(arguments,1))};return b.data("jscroll",a.extend({},d,{initialized:!0,waiting:!1,nextHref:l})),n(),m(),s(),a.extend(b.jscroll,{destroy:p}),b};a.fn.jscroll=function(c){return this.each(function(){var d,e=a(this),f=e.data("jscroll");f&&f.initialized||(d=new b(e,c))})}}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index 9d598fe..fb068ba 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "jscroll", - "version": "2.3.5", + "version": "2.3.6", "description": "jQuery plugin for infinite scrolling / auto-paging.", "main": "jquery.jscroll.js", "scripts": { - "test": "grunt jshint" + "test": "grunt jshint", + "build": "grunt uglify" }, "repository": { "type": "git", From 563f6d9f26a0cd2d6578afff65262eddcd3662bc Mon Sep 17 00:00:00 2001 From: pklauzinski Date: Thu, 19 Jan 2017 09:30:07 -0600 Subject: [PATCH 2/3] * Merged PR * Updated main comment and copyright info * Removed deprecated bower `version` property --- .travis.yml | 9 ++++++++- README.md | 4 ++-- bower.json | 7 +++++-- jquery.jscroll.js | 15 +++++---------- jquery.jscroll.min.js | 15 +++++---------- package.json | 4 ++-- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index bc46557..091dae3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,11 @@ language: node_js node_js: - "stable" before_script: - - npm install -g grunt-cli \ No newline at end of file + - npm install -g grunt-cli +notifications: + webhooks: + urls: + - https://webhooks.gitter.im/e/7b6dee6d870a12710299 + on_success: change # options: [always|never|change] default: always + on_failure: always # options: [always|never|change] default: always + on_start: never # options: [always|never|change] default: always \ No newline at end of file diff --git a/README.md b/README.md index 2863637..8d33c44 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Official site at [jscroll.com](http://jscroll.com/). -* Copyright © 2011-2015, [Philip Klauzinski](http://gui.ninja) +* Copyright © 2011-2017, [Philip Klauzinski](http://webtopian.com) * Current Version: 2.3.5 * Dual licensed under the MIT and GPL Version 2 licenses. * http://jscroll.com/#license @@ -45,7 +45,7 @@ $('.jscroll').jscroll({ * `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. * `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`. * `loadingHtml ('Loading...')` - The HTML to show at the bottom of the content while loading the next set. -* `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 +* `loadingFunction` (false) - A JavaScript function to run after the loadingHtml has been drawn. * `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. * `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. * `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. diff --git a/bower.json b/bower.json index ff227ec..6515a5b 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,16 @@ { "name": "jscroll", - "version": "2.3.6", "homepage": "http://jscroll.com", "authors": [ { "name": "Philip Klauzinski", - "homepage": "http://gui.ninja" + "homepage": "http://webtopian.com" } ], + "repository": { + "type": "git", + "url": "https://github.com/pklauzinski/jscroll" + }, "description": "jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging", "main": "jquery.jscroll.js", "dependencies": { diff --git a/jquery.jscroll.js b/jquery.jscroll.js index 5ff9546..3d66afa 100644 --- a/jquery.jscroll.js +++ b/jquery.jscroll.js @@ -1,15 +1,10 @@ /*! * jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging - * http://jscroll.com/ + * @see @link{http://jscroll.com} * - * Copyright 2011-2016, Philip Klauzinski - * http://klauzinski.com/ - * Dual licensed under the MIT and GPL Version 2 licenses. - * http://jscroll.com/#license - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl-2.0.html - * - * @author Philip Klauzinski + * @copyright 2011-2017, Philip Klauzinski + * @license Dual licensed under the MIT and GPL Version 2 licenses. + * @author Philip Klauzinski (http://webtopian.com) * @version 2.3.6 * @requires jQuery v1.4.3+ * @preserve @@ -229,4 +224,4 @@ }); }; -})(jQuery); +})(jQuery); \ No newline at end of file diff --git a/jquery.jscroll.min.js b/jquery.jscroll.min.js index 54d574e..5071140 100644 --- a/jquery.jscroll.min.js +++ b/jquery.jscroll.min.js @@ -1,17 +1,12 @@ /*! * jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging - * http://jscroll.com/ + * @see @link{http://jscroll.com} * - * Copyright 2011-2016, Philip Klauzinski - * http://klauzinski.com/ - * Dual licensed under the MIT and GPL Version 2 licenses. - * http://jscroll.com/#license - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl-2.0.html - * - * @author Philip Klauzinski + * @copyright 2011-2017, Philip Klauzinski + * @license Dual licensed under the MIT and GPL Version 2 licenses. + * @author Philip Klauzinski (http://webtopian.com) * @version 2.3.6 * @requires jQuery v1.4.3+ * @preserve */ -!function(a){"use strict";a.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"Loading...",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var b=function(b,c){var d=b.data("jscroll"),e="function"==typeof c?{callback:c}:c,f=a.extend({},a.jscroll.defaults,e,d||{}),g="visible"===b.css("overflow-y"),h=b.find(f.nextSelector).first(),i=a(window),j=a("body"),k=g?i:b,l=a.trim(h.attr("href")+" "+f.contentSelector),m=function(){var b=a(f.loadingHtml).filter("img").attr("src");if(b){var c=new Image;c.src=b}},n=function(){b.find(".jscroll-inner").length||b.contents().wrapAll('
')},o=function(a){var b;f.pagingSelector?a.closest(f.pagingSelector).hide():(b=a.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),b.length||a.wrap('
').parent().hide())},p=function(){return k.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},q=function(){if(b.is(":visible")){n();var a=b.find("div.jscroll-inner").first(),c=b.data("jscroll"),d=parseInt(b.css("borderTopWidth"),10),e=isNaN(d)?0:d,h=parseInt(b.css("paddingTop"),10)+e,i=g?k.scrollTop():b.offset().top,j=a.length?a.offset().top:0,l=Math.ceil(i-j+k.height()+h);if(!c.waiting&&l+f.padding>=a.outerHeight())return u("info","jScroll:",a.outerHeight()-l,"from bottom. Loading next request..."),t()}},r=function(a){return a=a||b.data("jscroll"),a&&a.nextHref?(s(),!0):(u("warn","jScroll: nextSelector not found - destroying"),p(),!1)},s=function(){var c=b.find(f.nextSelector).first();if(c.length)if(f.autoTrigger&&(f.autoTriggerUntil===!1||f.autoTriggerUntil>0)){o(c);var d=j.height()-b.offset().top,e=b.height()0?i.height()-(b.offset().top-a(window).scrollTop()):i.height();e<=g&&q(),k.unbind(".jscroll").bind("scroll.jscroll",function(){return q()}),f.autoTriggerUntil>0&&f.autoTriggerUntil--}else k.unbind(".jscroll"),c.bind("click.jscroll",function(){return o(c),t(),!1})},t=function(){var c=b.find("div.jscroll-inner").first(),d=b.data("jscroll");return d.waiting=!0,c.append('
').children(".jscroll-added").last().html('
'+f.loadingHtml+"
").promise().done(function(){f.loadingFunction&&f.loadingFunction()}),b.animate({scrollTop:c.outerHeight()},0,function(){var e=d.nextHref;c.find("div.jscroll-added").last().load(e,function(c,g){if("error"===g)return p();var h=a(this).find(f.nextSelector).first();d.waiting=!1,d.nextHref=!!h.attr("href")&&a.trim(h.attr("href")+" "+f.contentSelector),a(".jscroll-next-parent",b).remove(),r(),f.callback&&f.callback.call(this,e),u("dir",d)})})},u=function(a){if(f.debug&&"object"==typeof console&&("object"==typeof a||"function"==typeof console[a]))if("object"==typeof a){var b=[];for(var c in a)"function"==typeof console[c]?(b=a[c].length?a[c]:[a[c]],console[c].apply(console,b)):console.log.apply(console,b)}else console[a].apply(console,Array.prototype.slice.call(arguments,1))};return b.data("jscroll",a.extend({},d,{initialized:!0,waiting:!1,nextHref:l})),n(),m(),s(),a.extend(b.jscroll,{destroy:p}),b};a.fn.jscroll=function(c){return this.each(function(){var d,e=a(this),f=e.data("jscroll");f&&f.initialized||(d=new b(e,c))})}}(jQuery); \ No newline at end of file +!function(a){"use strict";a.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"Loading...",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var b=function(b,c){var d=b.data("jscroll"),e="function"==typeof c?{callback:c}:c,f=a.extend({},a.jscroll.defaults,e,d||{}),g="visible"===b.css("overflow-y"),h=b.find(f.nextSelector).first(),i=a(window),j=a("body"),k=g?i:b,l=a.trim(h.attr("href")+" "+f.contentSelector),m=function(){var b=a(f.loadingHtml).filter("img").attr("src");if(b){var c=new Image;c.src=b}},n=function(){b.find(".jscroll-inner").length||b.contents().wrapAll('
')},o=function(a){var b;f.pagingSelector?a.closest(f.pagingSelector).hide():(b=a.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),b.length||a.wrap('
').parent().hide())},p=function(){return k.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},q=function(){if(b.is(":visible")){n();var a=b.find("div.jscroll-inner").first(),c=b.data("jscroll"),d=parseInt(b.css("borderTopWidth"),10),e=isNaN(d)?0:d,h=parseInt(b.css("paddingTop"),10)+e,i=g?k.scrollTop():b.offset().top,j=a.length?a.offset().top:0,l=Math.ceil(i-j+k.height()+h);if(!c.waiting&&l+f.padding>=a.outerHeight())return u("info","jScroll:",a.outerHeight()-l,"from bottom. Loading next request..."),t()}},r=function(a){return a=a||b.data("jscroll"),a&&a.nextHref?(s(),!0):(u("warn","jScroll: nextSelector not found - destroying"),p(),!1)},s=function(){var c=b.find(f.nextSelector).first();if(c.length)if(f.autoTrigger&&(f.autoTriggerUntil===!1||f.autoTriggerUntil>0)){o(c);var d=j.height()-b.offset().top,e=b.height()0?i.height()-(b.offset().top-a(window).scrollTop()):i.height();g>=e&&q(),k.unbind(".jscroll").bind("scroll.jscroll",function(){return q()}),f.autoTriggerUntil>0&&f.autoTriggerUntil--}else k.unbind(".jscroll"),c.bind("click.jscroll",function(){return o(c),t(),!1})},t=function(){var c=b.find("div.jscroll-inner").first(),d=b.data("jscroll");return d.waiting=!0,c.append('
').children(".jscroll-added").last().html('
'+f.loadingHtml+"
").promise().done(function(){f.loadingFunction&&f.loadingFunction()}),b.animate({scrollTop:c.outerHeight()},0,function(){var e=d.nextHref;c.find("div.jscroll-added").last().load(e,function(c,g){if("error"===g)return p();var h=a(this).find(f.nextSelector).first();d.waiting=!1,d.nextHref=h.attr("href")?a.trim(h.attr("href")+" "+f.contentSelector):!1,a(".jscroll-next-parent",b).remove(),r(),f.callback&&f.callback.call(this,e),u("dir",d)})})},u=function(a){if(f.debug&&"object"==typeof console&&("object"==typeof a||"function"==typeof console[a]))if("object"==typeof a){var b=[];for(var c in a)"function"==typeof console[c]?(b=a[c].length?a[c]:[a[c]],console[c].apply(console,b)):console.log.apply(console,b)}else console[a].apply(console,Array.prototype.slice.call(arguments,1))};return b.data("jscroll",a.extend({},d,{initialized:!0,waiting:!1,nextHref:l})),n(),m(),s(),a.extend(b.jscroll,{destroy:p}),b};a.fn.jscroll=function(c){return this.each(function(){var d,e=a(this),f=e.data("jscroll");f&&f.initialized||(d=new b(e,c))})}}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index fb068ba..914c184 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ ], "author": { "name": "Philip Klauzinski", - "url": "http://gui.ninja" + "url": "http://webtopian.com" }, "license": "MIT", "bugs": { @@ -35,7 +35,7 @@ "jquery": "^1.7.4" }, "devDependencies": { - "grunt": "^0.4.5", + "grunt": "^1.0.1", "grunt-contrib-jshint": "^0.11.3", "grunt-contrib-uglify": "^0.9.2" } From 4232f0152c4f8d7aac3dbea2774a0c07d3db00ac Mon Sep 17 00:00:00 2001 From: pklauzinski Date: Thu, 19 Jan 2017 09:33:27 -0600 Subject: [PATCH 3/3] Updated version number --- README.md | 2 +- jquery.jscroll.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d33c44..f3ad8c1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Official site at [jscroll.com](http://jscroll.com/). * Copyright © 2011-2017, [Philip Klauzinski](http://webtopian.com) -* Current Version: 2.3.5 +* Current Version: 2.3.7 * Dual licensed under the MIT and GPL Version 2 licenses. * http://jscroll.com/#license * http://www.opensource.org/licenses/mit-license.php diff --git a/jquery.jscroll.js b/jquery.jscroll.js index 3d66afa..054c531 100644 --- a/jquery.jscroll.js +++ b/jquery.jscroll.js @@ -5,7 +5,7 @@ * @copyright 2011-2017, Philip Klauzinski * @license Dual licensed under the MIT and GPL Version 2 licenses. * @author Philip Klauzinski (http://webtopian.com) - * @version 2.3.6 + * @version 2.3.7 * @requires jQuery v1.4.3+ * @preserve */ diff --git a/package.json b/package.json index 914c184..32203ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jscroll", - "version": "2.3.6", + "version": "2.3.7", "description": "jQuery plugin for infinite scrolling / auto-paging.", "main": "jquery.jscroll.js", "scripts": {