bower_components/prism/plugins/autoloader/prism-autoloader.js
function (langs, success, error) {
		if (typeof langs === 'string') {
			langs = [langs];
		}
		var i = 0;
		var l = langs.length;
		var f = function () {
			if (i < l) {
				loadLanguage(langs[i], function () {
					i++;
					f();
				}, function () {
					error && error(langs[i]);
				});
			} else if (i === l) {
				success && success(langs);
			}
		};
		f();
	}
function (langs, success, error) {
		if (typeof langs === 'string') {
			langs = [langs];
		}
		var i = 0;
		var l = langs.length;
		var f = function () {
			if (i < l) {
				loadLanguage(langs[i], function () {
					i++;
					f();
				}, function () {
					error && error(langs[i]);
				});
			} else if (i === l) {
				success && success(langs);
			}
		};
		f();
	}
function ( langs , success , error ) { if ( typeof langs === 'string' ) { langs = [ langs ] ; } var i = 0 ; var l = langs . length ; var f = function ( ) { if ( i < l ) { loadLanguage ( langs [ i ] , function ( ) { i ++ ; f ( ) ; } , function ( ) { error && error ( langs [ i ] ) ; } ) ; } else if ( i === l ) { success && success ( langs ) ; } } ; f ( ) ; }
Sequentially loads an array of grammars.
@param {string[]|string} langs
@param {function=} success
@param {function=} error
Sequentially loads an array of grammars .