make the animate property do something

BUG:332884
CCBUG:332869
This commit is contained in:
Marco Martin 2014-04-03 18:07:05 +02:00
parent 1a65efb619
commit 2f10450c17

View File

@ -123,7 +123,7 @@ Item {
*/ */
function push(page, properties, immediate) function push(page, properties, immediate)
{ {
return Engine.push(page, properties, false, immediate); return Engine.push(page, properties, false, !root.animate || immediate);
} }
/** /**
@ -137,7 +137,7 @@ Item {
*/ */
function pop(page, immediate) function pop(page, immediate)
{ {
return Engine.pop(page, immediate); return Engine.pop(page, !root.animate || immediate);
} }
/** /**
@ -157,7 +157,7 @@ Item {
*/ */
function replace(page, properties, immediate) function replace(page, properties, immediate)
{ {
return Engine.push(page, properties, true, immediate); return Engine.push(page, properties, true, !root.animate || immediate);
} }
/** Clears the page stack of all pages. */ /** Clears the page stack of all pages. */