Skip to content

v3.0.0

Choose a tag to compare

@sutara79 sutara79 released this 25 Apr 00:58
· 16 commits to master since this release

Option "instance" is deleted.

In v3.x, simpleScrollFollow() always returns jQuery object, so jQuery method chaining always works.

How to call public method from outside is Changed.

v3.x
// apply plugin to an element
$('#foo').simpleScrollFollow();

// call sub-method "setEnabled()"
// the second argument is for sub-method
$('#foo').simpleScrollFollow('setEnabled', false);
v2.x
// set "instance" true
var arrInstance = $('#foo').simpleScrollFollow({
  instance: true
});

// call submethod "setEnabled()"
$(arrInstance).each(function() {
  this.setEnabled(false);
});