refactor(components): update to latest stencil api

This commit is contained in:
Adam Bradley
2017-07-25 10:03:07 -05:00
parent 69dfaad7b0
commit b8c0589513
91 changed files with 6199 additions and 4426 deletions

View File

@ -60,7 +60,7 @@ export class Gesture {
Ionic.listener.enable(this, 'touchstart', true, this.attachTo);
Ionic.listener.enable(this, 'mousedown', true, this.attachTo);
Ionic.dom.write(() => {
Core.dom.write(() => {
applyStyles(getElementReference(this.$el, this.attachTo), GESTURE_INLINE_STYLES);
});
}
@ -178,7 +178,7 @@ export class Gesture {
if (!this.isMoveQueued) {
this.isMoveQueued = true;
Ionic.dom.write(() => {
Core.dom.write(() => {
this.isMoveQueued = false;
detail.type = 'pan';

View File

@ -44,7 +44,7 @@ export class Scroll implements IScroll {
if (!self.queued && self.enabled) {
self.queued = true;
Ionic.dom.read(function(timeStamp) {
Core.dom.read(function(timeStamp) {
self.queued = false;
self.onScroll(timeStamp || Date.now());
});
@ -127,7 +127,7 @@ export class Scroll implements IScroll {
// haven't scrolled in a while, so it's a scrollend
self.isScrolling = false;
Ionic.dom.read(function(timeStamp) {
Core.dom.read(function(timeStamp) {
if (!self.isScrolling) {
self.onEnd(timeStamp);
}
@ -315,7 +315,7 @@ export class Scroll implements IScroll {
if (easedT < 1) {
// do not use DomController here
// must use nativeRaf in order to fire in the next frame
Ionic.dom.raf(step);
Core.dom.raf(step);
} else {
stopScroll = true;
@ -329,8 +329,8 @@ export class Scroll implements IScroll {
self.isScrolling = true;
// chill out for a frame first
Ionic.dom.write(() => {
Ionic.dom.write(timeStamp => {
Core.dom.write(() => {
Core.dom.write(timeStamp => {
startTime = timeStamp;
step(timeStamp);
});