Skip to content

Commit

Permalink
In $draw exit if mode!=Canvas instead of mode==DOM
Browse files Browse the repository at this point in the history
In default $draw code, exit if current mode is not
QMLRenderMode.Canvas. This is better than check that mode not equal to
DOM. Because we can have some new modes, for example "zero"-mode when
we do not need rendering at all. This is useful for serverside or
scripting scenarios.
  • Loading branch information
pavelvasev authored and akreuzkamp committed Jan 12, 2015
1 parent 4c9e432 commit 2144c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtcore.js
Expand Up @@ -809,7 +809,7 @@ QMLEngine = function (element, options) {

this.$draw = function()
{
if (this.renderMode == QMLRenderMode.DOM)
if (this.renderMode != QMLRenderMode.Canvas)
return;
var time = new Date();

Expand Down

0 comments on commit 2144c04

Please sign in to comment.