| 871 | |
| 872 | // Called at beginning of init, to execute all pre-init plugins. |
| 873 | var execPreInitPlugins = function( root ) { //jshint ignore:line |
| 874 | for ( var i = 0; i < preInitPlugins.length; i++ ) { |
| 875 | var thisLevel = preInitPlugins[ i ]; |
| 876 | if ( thisLevel !== undefined ) { |
| 877 | for ( var j = 0; j < thisLevel.length; j++ ) { |
| 878 | thisLevel[ j ]( root, roots[ "impress-root-" + root.id ] ); |
| 879 | } |
| 880 | } |
| 881 | } |
| 882 | }; |
| 883 | |
| 884 | // `addPreStepLeavePlugin` allows plugins to register a function that should |
| 885 | // be run (synchronously) at the beginning of goto() |