Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMP Sidebar V1: Skeleton'd the files for the feature #9784

Merged
merged 11 commits into from Jun 8, 2017
4 changes: 3 additions & 1 deletion extensions/amp-sidebar/0.1/amp-sidebar.js
Expand Up @@ -323,4 +323,6 @@ export class AmpSidebar extends AMP.BaseElement {
}
}

AMP.registerElement('amp-sidebar', AmpSidebar, CSS);
AMP.extension('amp-sidebar', '0.1', AMP => {
AMP.registerElement('amp-sidebar', AmpSidebar, CSS);
});
4 changes: 3 additions & 1 deletion extensions/amp-sidebar/1.0/amp-sidebar.js
Expand Up @@ -34,4 +34,6 @@ export class AmpSidebar extends AMP.BaseElement {
}
}

AMP.registerElement('amp-sidebar', AmpSidebar, CSS);
AMP.extension('amp-sidebar', '1.0', AMP => {
AMP.registerElement('amp-sidebar', AmpSidebar, CSS);
});
4 changes: 4 additions & 0 deletions gulpfile.js
Expand Up @@ -168,6 +168,10 @@ function declareExtension(name, version, hasCssOrOptions, opt_noTypeCheck,
}

/**
* This function is used for declaring deprecated extensions. It simply places the current
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1!

* version code in place of the latest versions.
* This has the ability to break an extension verison, so please be sure that this is
* the correct to use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "the correct one to use"?

* @param {string} name
* @param {string} version E.g. 0.1
* @param {string} lastestVersion
Expand Down