Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #28 from mmermerkaya/patch-1
Browse files Browse the repository at this point in the history
Put <script> inside <dom-module>
  • Loading branch information
zenorocha committed Jul 7, 2015
2 parents 696c596 + b0fcf86 commit 8fc2961
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions my-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
<!-- Defines element markup -->
<dom-module id="my-element">
<template></template>

<!-- Registers custom element -->
<script>
Polymer({
is: 'my-element',

// Fires when an instance of the element is created
created: function() {},

// Fires when the local DOM has been fully prepared
ready: function() {},

// Fires when the element was inserted into the document
attached: function() {},

// Fires when the element was removed from the document
detached: function() {},

// Fires when an attribute was added, removed, or updated
attributeChanged: function(name, type) {}
});
</script>
</dom-module>

<!-- Registers custom element -->
<script>
Polymer({
is: 'my-element',

// Fires when an instance of the element is created
created: function() {},

// Fires when the local DOM has been fully prepared
ready: function() {},

// Fires when the element was inserted into the document
attached: function() {},

// Fires when the element was removed from the document
detached: function() {},

// Fires when an attribute was added, removed, or updated
attributeChanged: function(name, type) {}
});
</script>

0 comments on commit 8fc2961

Please sign in to comment.