Change gc.lib.addCallback to gc.lib.pushCallback (#626)
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
addToolbarButton( toolbar );
|
||||
}
|
||||
|
||||
api.lib.gc.addCallback( function() {
|
||||
api.lib.gc.pushCallback( function() {
|
||||
clearTimeout( timeoutHandle );
|
||||
} );
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
// Regster callback to empty the help div on teardown
|
||||
var api = e.detail.api;
|
||||
api.lib.gc.addCallback( function() {
|
||||
api.lib.gc.pushCallback( function() {
|
||||
window.clearTimeout( timeoutHandle );
|
||||
helpDiv.style.display = "";
|
||||
helpDiv.innerHTML = "";
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
// Unset all this on teardown
|
||||
var api = event.detail.api;
|
||||
api.lib.gc.addCallback( function() {
|
||||
api.lib.gc.pushCallback( function() {
|
||||
document.body.classList.remove( "impress-mobile" );
|
||||
var prev = document.getElementsByClassName( "prev" )[ 0 ];
|
||||
var next = document.getElementsByClassName( "next" )[ 0 ];
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
show();
|
||||
|
||||
// Unset all this on teardown
|
||||
gc.addCallback( function() {
|
||||
gc.pushCallback( function() {
|
||||
window.clearTimeout( timeoutHandle );
|
||||
document.body.classList.remove( "impress-mouse-timeout" );
|
||||
} );
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
root = event.target;
|
||||
getSteps();
|
||||
var gc = event.detail.api.lib.gc;
|
||||
gc.addCallback( function() {
|
||||
gc.pushCallback( function() {
|
||||
stepids = [];
|
||||
if ( progressbar ) {
|
||||
progressbar.style.width = "";
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
// Register teardown callback to reset the data.x, .y, .z values.
|
||||
document.addEventListener( "impress:init", function( event ) {
|
||||
var root = event.target;
|
||||
event.detail.api.lib.gc.addCallback( function() {
|
||||
event.detail.api.lib.gc.pushCallback( function() {
|
||||
var steps = startingState[ root.id ];
|
||||
var step;
|
||||
while ( step = steps.pop() ) {
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
|
||||
document.addEventListener( "impress:init", function( event ) {
|
||||
var api = event.detail.api;
|
||||
api.lib.gc.addCallback( function() {
|
||||
api.lib.gc.pushCallback( function() {
|
||||
toolbar.innerHTML = "";
|
||||
groups = [];
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user