Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2013-04-28 16:51:00 +0400
committersgiehl <stefan@piwik.org>2013-04-28 16:51:00 +0400
commit8af5f6443c82e404b9b7855d5978a299bb13d905 (patch)
tree6dbf44eb1bfdb9205cc7edd6b87fbba2424ac37c /plugins/Widgetize
parent87916f613fd01b383aad04cdbe4dbf924526d780 (diff)
converted global js vars to local vars where possible
Diffstat (limited to 'plugins/Widgetize')
-rw-r--r--plugins/Widgetize/templates/widgetize.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Widgetize/templates/widgetize.js b/plugins/Widgetize/templates/widgetize.js
index e54210642f..fb65dc7d02 100644
--- a/plugins/Widgetize/templates/widgetize.js
+++ b/plugins/Widgetize/templates/widgetize.js
@@ -13,7 +13,7 @@ function widgetize() {
}
this.getEmbedUrl = function (parameters, exportFormat) {
- copyParameters = {};
+ var copyParameters = {};
for (var variableName in parameters) {
copyParameters[variableName] = parameters[variableName];
}
@@ -38,9 +38,8 @@ function widgetize() {
}
this.callbackAddExportButtonsUnderWidget = function (widgetUniqueId, loadedWidgetElement) {
- widget = widgetsHelper.getWidgetObjectFromUniqueId(widgetUniqueId);
- widgetName = widget["name"];
- widgetParameters = widget['parameters'];
+ var widget = widgetsHelper.getWidgetObjectFromUniqueId(widgetUniqueId);
+ var widgetParameters = widget['parameters'];
var exportButtonsElement = $('<span id="exportButtons">');