mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-01 00:07:32 +03:00 
			
		
		
		
	fix disableLazySchemas option
This commit is contained in:
		
							parent
							
								
									461b4cf279
								
							
						
					
					
						commit
						b6e15322ca
					
				|  | @ -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() { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user