fix disableLazySchemas option

This commit is contained in:
Roman Hotsiy 2016-01-24 22:00:27 +02:00
parent 461b4cf279
commit b6e15322ca

View File

@ -16,7 +16,7 @@ import {ElementRef} from 'angular2/core';
import {BrowserDomAdapter, bootstrap} from 'angular2/platform/browser';
import detectScollParent from 'scrollparent';
import {isFunction} from 'angular2/src/facade/lang';
import {isFunction, isString} from 'angular2/src/facade/lang';
let optionNames = new Set(['scrollYOffset', 'disableLazySchemas']);
@ -83,7 +83,7 @@ export default class Redoc extends BaseComponent {
}
}
this.options.disableLazySchemas = (this.options.disableLazySchemas !== null);
if (isString(this.options.disableLazySchemas)) this.options.disableLazySchemas = true;
}
static showLoadingAnimation() {