Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
parro-it committed May 4, 2018
1 parent a620dcc commit ee33206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/using-classes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ function createWindow() {
win.setChild(box);

win.onContentSizeChanged(() => {
const size = win.getContentSize();
const size = win.contentSize;
console.log(`size changed to ${size.width}x${size.height}`);
});
let step = 0;
win.onClosing(() => {
if (win.getTitle() == "Test Window") {
if (win.title == "Test Window") {
let interval = setInterval(() => {
if (step === 0){
win.contentSize = {width: 400, height: 300};
Expand Down

0 comments on commit ee33206

Please sign in to comment.