Pleasing jshint gods

This commit is contained in:
kevgliss 2015-07-29 19:24:05 -07:00
parent 1e748a64d7
commit 79353c142a
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ angular.module('lemur')
PluginService.getByType('destination').then(function (plugins) { PluginService.getByType('destination').then(function (plugins) {
$scope.plugins = plugins; $scope.plugins = plugins;
}); });
$scope.save = function (destination) { $scope.save = function (destination) {
DestinationService.create(destination).then(function () { DestinationService.create(destination).then(function () {
$modalInstance.close(); $modalInstance.close();
@ -27,10 +28,10 @@ angular.module('lemur')
PluginService.getByType('destination').then(function (plugins) { PluginService.getByType('destination').then(function (plugins) {
$scope.plugins = plugins; $scope.plugins = plugins;
_.each($scope.plugins, function (plugin) { _.each($scope.plugins, function (plugin) {
if (plugin.slug == $scope.destination.pluginName) { if (plugin.slug === $scope.destination.pluginName) {
plugin.pluginOptions = $scope.destination.destinationOptions; plugin.pluginOptions = $scope.destination.destinationOptions;
$scope.destination.plugin = plugin; $scope.destination.plugin = plugin;
}; }
}); });
}); });