diff --git a/ionic/components/scroll/pull-to-refresh.ts b/ionic/components/scroll/pull-to-refresh.ts index ea694a0574..fdce69e5bf 100644 --- a/ionic/components/scroll/pull-to-refresh.ts +++ b/ionic/components/scroll/pull-to-refresh.ts @@ -18,7 +18,7 @@ import {raf, ready, CSS} from '../../util/dom'; * @usage * ```html * - * * @@ -31,7 +31,7 @@ import {raf, ready, CSS} from '../../util/dom'; * export class MyClass { * * doRefresh(refresher) { - * console.log('Refreshing', refresher) + * console.log('Doing Refresh', refresher) * * setTimeout(() => { * refresher.complete(); @@ -39,8 +39,8 @@ import {raf, ready, CSS} from '../../util/dom'; * }, 5000); * } * - * doStarting(refresher) { - * console.log('Starting', refresher); + * doStart(refresher) { + * console.log('Doing Start', refresher); * } * * doPulling(refresher) { @@ -204,7 +204,7 @@ export class Refresher { /** * @output {event} When you start pulling down */ - @Output() starting: EventEmitter = new EventEmitter(); + @Output() start: EventEmitter = new EventEmitter(); constructor( @@ -305,7 +305,7 @@ export class Refresher { activate() { //this.ele.classList.add('active'); this.isActive = true; - this.starting.emit(this); + this.start.emit(this); } /** @@ -325,7 +325,7 @@ export class Refresher { /** * @private */ - start() { + startRefresh() { // startCallback this.isRefreshing = true; this.refresh.emit(this); @@ -522,7 +522,7 @@ export class Refresher { // the user has scroll far enough to trigger a refresh if (this.lastOverscroll > this.ptrThreshold) { - this.start(); + this.startRefresh(); this.scrollTo(this.ptrThreshold, this.scrollTime); // the user has overscrolled but not far enough to trigger a refresh diff --git a/ionic/components/scroll/test/pull-to-refresh/index.ts b/ionic/components/scroll/test/pull-to-refresh/index.ts index 706d7f219c..af2092418f 100644 --- a/ionic/components/scroll/test/pull-to-refresh/index.ts +++ b/ionic/components/scroll/test/pull-to-refresh/index.ts @@ -14,7 +14,7 @@ class E2EApp { } doRefresh(refresher) { - console.log('Refreshing', refresher) + console.log('Doing Refresh', refresher) // Add to the top of the list on refresh let firstIndex = this.items[0].index - 1; @@ -29,8 +29,8 @@ class E2EApp { }, 5000); } - doStarting(refresher) { - console.log('Starting', refresher); + doStart(refresher) { + console.log('Doing Start', refresher); } doPulling(refresher) { diff --git a/ionic/components/scroll/test/pull-to-refresh/main.html b/ionic/components/scroll/test/pull-to-refresh/main.html index a4b0eb052c..f4029d0a4e 100644 --- a/ionic/components/scroll/test/pull-to-refresh/main.html +++ b/ionic/components/scroll/test/pull-to-refresh/main.html @@ -2,7 +2,7 @@