Fix goto plugin: set lib variable from impress:init
This commit is contained in:
@@ -1659,6 +1659,10 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var lib;
|
var lib;
|
||||||
|
|
||||||
|
document.addEventListener( "impress:init", function( event ) {
|
||||||
|
lib = event.detail.api.lib;
|
||||||
|
}, false );
|
||||||
|
|
||||||
var isNumber = function( numeric ) {
|
var isNumber = function( numeric ) {
|
||||||
return !isNaN( numeric );
|
return !isNaN( numeric );
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -32,6 +32,10 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var lib;
|
var lib;
|
||||||
|
|
||||||
|
document.addEventListener( "impress:init", function( event ) {
|
||||||
|
lib = event.detail.api.lib;
|
||||||
|
}, false );
|
||||||
|
|
||||||
var isNumber = function( numeric ) {
|
var isNumber = function( numeric ) {
|
||||||
return !isNaN( numeric );
|
return !isNaN( numeric );
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user