зеркало из https://github.com/mozilla/treeherder.git
Actually require jsonSchemaDefaults where it's used (#2619)
This used to be vendored, but vendored in such a way that it defined a global named `jsonSchemaDefaults`. Just requiring it in the entrypoint does not have the same effect. So, require it where it's used like a normal JS module.
This commit is contained in:
Родитель
f6fbfc0380
Коммит
adec7645b8
|
@ -33,7 +33,6 @@ require('js-yaml');
|
|||
require('react-dom');
|
||||
require('ngreact');
|
||||
require('jquery.scrollto');
|
||||
require('json-schema-defaults');
|
||||
require('./vendor/resizer.js');
|
||||
|
||||
// Treeherder JS
|
||||
|
|
|
@ -7,6 +7,7 @@ treeherder.controller('TCJobActionsCtrl', [
|
|||
function ($scope, $http, $uibModalInstance, ThResultSetStore,
|
||||
ThJobDetailModel, thTaskcluster, ThTaskclusterErrors, thNotify,
|
||||
job, repoName, resultsetId, actionsRender) {
|
||||
let jsonSchemaDefaults = require('json-schema-defaults');
|
||||
let originalTask;
|
||||
$scope.input = {};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче