config first

This commit is contained in:
Лаврёнов Антон
2013-11-12 19:03:15 +08:00
parent d4b2892c13
commit 6de66f18af

View File

@@ -1005,8 +1005,8 @@
x = config.x || 0,
y = config.y || 0,
canvas = new Kinetic.SceneCanvas({
width: this.getWidth() || config.width || (stage ? stage.getWidth() : 0),
height: this.getHeight() || config.height || (stage ? stage.getHeight() : 0),
width: config.width || this.getWidth() || (stage ? stage.getWidth() : 0),
height: config.height || this.getHeight() || (stage ? stage.getHeight() : 0),
pixelRatio: 1
}),
context = canvas.getContext();