Skip to content

Commit

Permalink
v1.0.2, highlights are back
Browse files Browse the repository at this point in the history
  • Loading branch information
atotic authored and - committed May 28, 2015
1 parent 70d7aee commit 99b65da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "prism-element",
"description": "Prism.js import and syntax highlighting",
"version": "1.0.1",
"version": "1.0.2",
"authors": [
"The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)"
],
Expand Down
4 changes: 2 additions & 2 deletions prism-highlighter.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
},

attached: function() {
Polymer.dom(this).parentNode.addEventListener(HIGHLIGHT_EVENT, this._handler);
(this.parentElement || this.parentNode.host).addEventListener(HIGHLIGHT_EVENT, this._handler);
},

detached: function() {
Polymer.dom(this).parentNode.removeEventListener(HIGHLIGHT_EVENT, this._handler);
(this.parentElement || this.parentNode.host).removeEventListener(HIGHLIGHT_EVENT, this._handler);
},

/**
Expand Down

0 comments on commit 99b65da

Please sign in to comment.