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:
Dustin J. Mitchell 2017-07-10 09:36:48 -04:00 коммит произвёл Ed Morley
Родитель f6fbfc0380
Коммит adec7645b8
2 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 = {};