[Formatting] Rename export image service variables

Issue #1164
This commit is contained in:
David Hudson 2016-09-10 01:45:50 +09:00
parent 72ecbb0abc
commit a6386b1612
2 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@ define([
PlotController, PlotController,
PlotViewPolicy, PlotViewPolicy,
PlotOptionsController, PlotOptionsController,
ExportImageService, exportImageService,
plotTemplate, plotTemplate,
plotOptionsBrowseTemplate, plotOptionsBrowseTemplate,
legacyRegistry legacyRegistry
@ -91,7 +91,7 @@ define([
"services": [ "services": [
{ {
"key": "ExportImageService", "key": "ExportImageService",
"implementation": ExportImageService, "implementation": exportImageService,
"depends": [ "depends": [
"$q", "$q",
"$timeout", "$timeout",

View File

@ -64,7 +64,7 @@ define(
function PlotController( function PlotController(
$scope, $scope,
$element, $element,
ExportImageService, exportImageService,
telemetryFormatter, telemetryFormatter,
telemetryHandler, telemetryHandler,
throttle, throttle,
@ -249,7 +249,7 @@ define(
self.pending = true; self.pending = true;
self.$element = $element; self.$element = $element;
self.ExportImageService = ExportImageService; self.exportImageService = exportImageService;
// Initialize axes; will get repopulated when telemetry // Initialize axes; will get repopulated when telemetry
// metadata becomes available. // metadata becomes available.
@ -374,7 +374,7 @@ define(
PlotController.prototype.exportPDF = function () { PlotController.prototype.exportPDF = function () {
var self = this; var self = this;
self.hideExportButtons = true; self.hideExportButtons = true;
self.ExportImageService.exportPDF(self.$element[0], "plot.pdf").finally(function () { self.exportImageService.exportPDF(self.$element[0], "plot.pdf").finally(function () {
self.hideExportButtons = false; self.hideExportButtons = false;
}); });
}; };
@ -385,7 +385,7 @@ define(
PlotController.prototype.exportPNG = function () { PlotController.prototype.exportPNG = function () {
var self = this; var self = this;
self.hideExportButtons = true; self.hideExportButtons = true;
self.ExportImageService.exportPNG(self.$element[0], "plot.png").finally(function () { self.exportImageService.exportPNG(self.$element[0], "plot.png").finally(function () {
self.hideExportButtons = false; self.hideExportButtons = false;
}); });
}; };
@ -396,7 +396,7 @@ define(
PlotController.prototype.exportJPG = function () { PlotController.prototype.exportJPG = function () {
var self = this; var self = this;
self.hideExportButtons = true; self.hideExportButtons = true;
self.ExportImageService.exportJPG(self.$element[0], "plot.jpg").finally(function () { self.exportImageService.exportJPG(self.$element[0], "plot.jpg").finally(function () {
self.hideExportButtons = false; self.hideExportButtons = false;
}); });
}; };