/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.6.5
src/ngScenario/angular.suffix
21 строка
490 B
Michał Gołębiowski
feat(jqLite): implement jqLite(f) as alias to jqLite(document).ready(f)
12 окт 2016, 20:31
12 окт 2016, 20:31
369fb7f
Код
Авторство
О чём код?
bindJQuery(); publishExternalAPI(angular); var $runner = new angular.scenario.Runner(window), scripts = window.document.getElementsByTagName('script'), script = scripts[scripts.length - 1], config = {}; angular.forEach(script.attributes, function(attr) { var match = attr.name.match(/ng[:\-](.*)/); if (match) { config[match[1]] = attr.value || true; } }); if (config.autotest) { JQLite(function() { angular.scenario.setUpAndRun(config); }); } })(window);