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:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-21 03:43:55 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-21 03:43:55 +0400
commita010d5f1e2524c808892bea22b7d1e4c12cb8e80 (patch)
tree13c84cbe5fc0951ce29516890f3976e0091558d8 /plugins/Dashboard
parent49aef6892c17a020cb3f41ea35be8a32a586ec22 (diff)
Replace "new Object()" with equivalent "{}"; also fix "new Object"
(without constructor syntax).
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/templates/Dashboard.js8
-rw-r--r--plugins/Dashboard/templates/widgetMenu.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Dashboard/templates/Dashboard.js b/plugins/Dashboard/templates/Dashboard.js
index 76b1a8244d..dcf8d11112 100644
--- a/plugins/Dashboard/templates/Dashboard.js
+++ b/plugins/Dashboard/templates/Dashboard.js
@@ -1,7 +1,7 @@
function dashboard()
{
- this.dashboardElement = new Object;
- this.dashboardColumnsElement = new Object;
+ this.dashboardElement = {};
+ this.dashboardColumnsElement = {};
this.layout = '';
}
@@ -35,7 +35,7 @@ dashboard.prototype =
var self = this;
if(typeof self.layout == 'string') {
- var layout = new Object;
+ var layout = {};
//Old dashboard layout format: a string that looks like 'Actions.getActions~Actions.getDownloads|UserCountry.getCountry|Referers.getSearchEngines';
// '|' separate columns
// '~' separate widgets
@@ -46,7 +46,7 @@ dashboard.prototype =
continue;
}
var widgets = columns[columnNumber].split('~');
- layout[columnNumber] = new Object;
+ layout[columnNumber] = {};
for(var j=0; j<widgets.length; j++) {
wid = widgets[j].split('.');
uniqueId = 'widget'+wid[0]+wid[1];
diff --git a/plugins/Dashboard/templates/widgetMenu.js b/plugins/Dashboard/templates/widgetMenu.js
index baab13de1a..6556b9085f 100644
--- a/plugins/Dashboard/templates/widgetMenu.js
+++ b/plugins/Dashboard/templates/widgetMenu.js
@@ -75,7 +75,7 @@ widgetsHelper.getEmptyWidgetHtml = function (uniqueId, widgetName, widgetLoading
// widgetMenu constructor
function widgetMenu(dashboard)
{
- this.menu = new Object();
+ this.menu = {};
this.dashboard = dashboard;
}