default value for options

This commit is contained in:
Roman Hotsiy 2016-08-30 13:40:26 +03:00
parent 3a175d47fb
commit 158bd29b9b
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -16,7 +16,7 @@ if (IS_PRODUCTION) {
export const version = LIB_VERSION;
var moduleRef;
export function init(specUrl:string, options?) {
export function init(specUrl:string, options:any = {}) {
if (moduleRef) {
destroy();
}