Skip to content

Commit

Permalink
FIX: board-changed is fire after the header is set
Browse files Browse the repository at this point in the history
  • Loading branch information
afska committed Jan 23, 2017
1 parent 0ebe648 commit 715e34b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/components/gs-cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@
return;
}
if (this.domHost.isCtrlPressed()) {
this.fire("board-changed");
return this.header = {
this.header = {
x: this.x(),
y: this.y()
};
return this.fire("board-changed");
}
},
_validateData: function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/gs-board.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gs-board",
"version": "1.1.11",
"version": "1.1.12",
"dependencies": {},
"devDependencies": {
"connect-livereload": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/gs-cell/script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Polymer
return if not @options.editable

if @domHost.isCtrlPressed()
@fire "board-changed"
@header = { x: @x(), y: @y() }
@fire "board-changed"

_validateData: ->
throw new Error("The table is required") if not @table?
Expand Down

0 comments on commit 715e34b

Please sign in to comment.