Skip to content

Commit

Permalink
amp-list: remove support for deprecated state attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Jan 15, 2020
1 parent 9e862ca commit ba578fe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions extensions/amp-list/0.1/amp-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ export class AmpList extends AMP.BaseElement {
};

const src = mutations['src'];
const state = /** @type {!JsonObject} */ (mutations)['state'];
if (src !== undefined) {
if (typeof src === 'string') {
// Defer to fetch in layoutCallback() before first layout.
Expand All @@ -371,9 +370,6 @@ export class AmpList extends AMP.BaseElement {
} else {
this.user().error(TAG, 'Unexpected "src" type: ' + src);
}
} else if (state !== undefined) {
user().error(TAG, '[state] is deprecated, please use [src] instead.');
promise = renderLocalData(state);
}

const isLayoutContainer = mutations['is-layout-container'];
Expand Down

0 comments on commit ba578fe

Please sign in to comment.