Skip to content

Commit

Permalink
Merge pull request #1 from ThinkDeepTech/hm/impl
Browse files Browse the repository at this point in the history
Hm/impl
  • Loading branch information
haydenmcp authored Feb 20, 2018
2 parents 6f54278 + c865265 commit 250bc81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Polymer element providing import of intersection observer polyfill.",
"main": "deep-intersection-observer.html",
"dependencies": {
"polymer": "Polymer/polymer#^1.0 || ^2.0"
"polymer": "Polymer/polymer#^1.0 || ^2.0",
"intersection-observer": "w3c/IntersectionObserver"
},
"devDependencies": {
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^2.0.0",
Expand Down
36 changes: 5 additions & 31 deletions deep-intersection-observer.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,10 @@
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../polymer/polymer.html">
<script src="../intersection-observer/polyfill/intersection-observer.js"></script>

<dom-module id="deep-intersection-observer">
<template>
<style>
:host {
display: block;
}
</style>
<h2>Hello [[prop1]]!</h2>
</template>

<script>
/**
* `deep-intersection-observer`
* Polymer element providing import of intersection observer polyfill.
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class DeepIntersectionObserver extends Polymer.Element {
static get is() { return 'deep-intersection-observer'; }
static get properties() {
return {
prop1: {
type: String,
value: 'deep-intersection-observer'
}
};
}
}

window.customElements.define(DeepIntersectionObserver.is, DeepIntersectionObserver);
Polymer({
is: 'deep-intersection-observer'
});
</script>
</dom-module>

0 comments on commit 250bc81

Please sign in to comment.