Add code comment that impress().swipe() is internal API method.

By internal, we mean it is not documented on DOCUMENTATION.md.
This commit is contained in:
Henrik Ingo
2017-10-23 22:27:13 +03:00
parent b56b16d1cf
commit fd8bc69eb9
2 changed files with 8 additions and 0 deletions

View File

@@ -642,6 +642,10 @@
// transition to happen, this is just to animate the swipe. Once the
// transition is committed - such as at a touchend event - caller is
// responsible for also calling prev()/next() as appropriate.
//
// Note: For now, this function is made available to be used by the swipe plugin (which
// is the UI counterpart to this). It is a semi-internal API and intentionally not
// documented in DOCUMENTATION.md.
var swipe = function( pct ) {
if ( Math.abs( pct ) > 1 ) {
return;

View File

@@ -642,6 +642,10 @@
// transition to happen, this is just to animate the swipe. Once the
// transition is committed - such as at a touchend event - caller is
// responsible for also calling prev()/next() as appropriate.
//
// Note: For now, this function is made available to be used by the swipe plugin (which
// is the UI counterpart to this). It is a semi-internal API and intentionally not
// documented in DOCUMENTATION.md.
var swipe = function( pct ) {
if ( Math.abs( pct ) > 1 ) {
return;