Skip to content

Commit

Permalink
re-add frames
Browse files Browse the repository at this point in the history
I'm using a deprecated API, but it's replacement `slot` ha no working
polyfill yet.
  • Loading branch information
laat committed Mar 13, 2016
1 parent 357baab commit f57105a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/chess-board.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
-ms-transform:rotate(180deg);
-webkit-transform:rotate(180deg);
}
:host([reverse]) .chessBoard{
transform:rotate(180deg);
-ms-transform:rotate(180deg);
-webkit-transform:rotate(180deg);
}
</style>
<table class="chessBoard" cellpadding="0" cellspacing="0">
<tr>
Expand Down
6 changes: 5 additions & 1 deletion src/chess-board.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ASCIIBoard } from './ascii-chess-board'
import { template, getPieceClone } from './templates'
import { template, frameTemplate, getPieceClone } from './templates'
import { removeNodeContent } from './dom-utils'

class ChessBoard extends HTMLElement {
Expand All @@ -11,6 +11,10 @@ class ChessBoard extends HTMLElement {

this._asciiBoard = new ASCIIBoard(this.innerHTML.trim())
this._board = this._boardRoot.querySelector('.chessBoard')

this._frameRoot = this.createShadowRoot()
this._frameRoot.appendChild(frameTemplate.content.cloneNode(true))

this._renderBoard()

/*
Expand Down

0 comments on commit f57105a

Please # to comment.