Fix viewAjaxCallback might be called on null
This commit is contained in:
parent
ba2bfa2188
commit
25fa503981
3 changed files with 3 additions and 4 deletions
|
@ -204,8 +204,7 @@ function parseMeta(md, edit, view, toc, tocAffix) {
|
|||
}
|
||||
}
|
||||
|
||||
var viewAjaxCallback = null;
|
||||
window.viewAjaxCallback = viewAjaxCallback;
|
||||
window.viewAjaxCallback = null;
|
||||
|
||||
//regex for extra tags
|
||||
var spaceregex = /\s*/;
|
||||
|
|
|
@ -97,7 +97,7 @@ var queryOptions = Reveal.getQueryHash() || {};
|
|||
var options = extend(defaultOptions, options, queryOptions);
|
||||
Reveal.initialize(options);
|
||||
|
||||
viewAjaxCallback = function () {
|
||||
window.viewAjaxCallback = function () {
|
||||
Reveal.layout();
|
||||
};
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ function setupSyncAreas(edit, view, markdown) {
|
|||
|
||||
var scrollMap, lineHeightMap, viewTop, viewBottom;
|
||||
|
||||
viewAjaxCallback = clearMap;
|
||||
window.viewAjaxCallback = clearMap;
|
||||
|
||||
function clearMap() {
|
||||
scrollMap = null;
|
||||
|
|
Loading…
Reference in a new issue