diff --git a/lib/components/Redoc/redoc.js b/lib/components/Redoc/redoc.js index cdd20be0..77b3bf8f 100644 --- a/lib/components/Redoc/redoc.js +++ b/lib/components/Redoc/redoc.js @@ -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() {