Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 03b7178

Browse files
committed
asyncMethod -> async
1 parent 954d08a commit 03b7178

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

polymer-collapse/polymer-collapse.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
}
123123
// don't need to update if the size is already set and it's opened
124124
if (!this.fixedSize || !this.closed) {
125-
this.asyncUpdate();
125+
this.update();
126126
}
127127
},
128128
addListeners: function(node) {
@@ -139,7 +139,7 @@
139139
this.dimension = this.horizontal ? 'width' : 'height';
140140
},
141141
closedChanged: function() {
142-
this.asyncUpdate();
142+
this.update();
143143
},
144144
/**
145145
* Toggle the closed state of the collapsible.
@@ -154,7 +154,7 @@
154154
s.webkitTransition = s.transition = duration ?
155155
(this.dimension + ' ' + duration + 's') : null;
156156
if (duration === 0) {
157-
this.asyncMethod('transitionEnd');
157+
this.async('transitionEnd');
158158
}
159159
},
160160
transitionEnd: function() {
@@ -178,9 +178,6 @@
178178
this.transitionEnd();
179179
}
180180
},
181-
asyncUpdate: function() {
182-
this.updateJob = this.job(this.updateJob, this.update, 0);
183-
},
184181
update: function() {
185182
if (!this.target || !this.inDocument) {
186183
return;
@@ -205,7 +202,7 @@
205202
var s = this.calcSize();
206203
this.updateSize(0, null);
207204
}
208-
this.asyncMethod(function() {
205+
this.async(function() {
209206
this.updateSize(this.size || s, this.duration, true);
210207
}, null, 1);
211208
},
@@ -221,7 +218,7 @@
221218
} else {
222219
this.updateSize(this.calcSize(), null);
223220
}
224-
this.asyncMethod(function() {
221+
this.async(function() {
225222
this.updateSize(0, this.duration);
226223
}, null, 1);
227224
}

polymer-flex-layout/polymer-flex-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
if (!this.isContainer) {
101101
this.style.display = 'none';
102102
}
103-
this.asyncMethod(function() {
103+
this.async(function() {
104104
this.layoutContainer && this.layoutContainer.classList.add('flexbox');
105105
this.verticalChanged();
106106
this.alignChanged();

polymer-localstorage/polymer-localstorage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
useRaw: false,
6666
enteredDocument: function() {
6767
// wait for bindings are all setup
68-
this.asyncMethod('load');
68+
this.async('load');
6969
},
7070
valueChanged: function() {
7171
if (this.loaded) {

0 commit comments

Comments
 (0)