mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 00:18:40 +00:00
Make self const
This commit is contained in:
parent
cb26a4b36b
commit
cecb5736fb
|
|
@ -133,7 +133,8 @@
|
||||||
|
|
||||||
jsOMS.Chart.BarChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.BarChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this, rect;
|
const self = this;
|
||||||
|
let rect;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.ChartAbstract.prototype.drawLegend = function (svg, dataPointEnter, dataPoint)
|
jsOMS.Chart.ChartAbstract.prototype.drawLegend = function (svg, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
if (typeof this.legend !== 'undefined' && this.legend.visible) {
|
if (typeof this.legend !== 'undefined' && this.legend.visible) {
|
||||||
dataPointEnter.append("text").attr('class', 'dataPoint-name');
|
dataPointEnter.append("text").attr('class', 'dataPoint-name');
|
||||||
|
|
@ -289,7 +289,8 @@
|
||||||
|
|
||||||
jsOMS.Chart.ChartAbstract.prototype.drawMarker = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.ChartAbstract.prototype.drawMarker = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this, temp;
|
const self = this;
|
||||||
|
let temp;
|
||||||
|
|
||||||
if (this.dataSettings.marker.visible) {
|
if (this.dataSettings.marker.visible) {
|
||||||
temp = dataPointEnter.append('g').attr('class', 'dots').attr('clip-path', 'url(#clipper1)').selectAll('circle').data(function (d)
|
temp = dataPointEnter.append('g').attr('class', 'dots').attr('clip-path', 'url(#clipper1)').selectAll('circle').data(function (d)
|
||||||
|
|
@ -539,7 +540,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
jsOMS.Chart.ChartAbstract.prototype.createXAxis = function (x) {
|
jsOMS.Chart.ChartAbstract.prototype.createXAxis = function (x) {
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
return d3.svg.axis().scale(x).tickFormat(function (d)
|
return d3.svg.axis().scale(x).tickFormat(function (d)
|
||||||
{
|
{
|
||||||
|
|
@ -549,7 +550,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
jsOMS.Chart.ChartAbstract.prototype.createYAxis = function (y) {
|
jsOMS.Chart.ChartAbstract.prototype.createYAxis = function (y) {
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
return d3.svg.axis().scale(y).tickFormat(function (d)
|
return d3.svg.axis().scale(y).tickFormat(function (d)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,8 @@
|
||||||
|
|
||||||
jsOMS.Chart.ColumnChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.ColumnChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this, rect;
|
const self = this;
|
||||||
|
let rect;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.LineChart.prototype.drawData = function (svg, line, dataPointEnter, dataPoint)
|
jsOMS.Chart.LineChart.prototype.drawData = function (svg, line, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@
|
||||||
|
|
||||||
jsOMS.Chart.PieChart.prototype.drawData = function (svg, dataPointEnter, dataPoint)
|
jsOMS.Chart.PieChart.prototype.drawData = function (svg, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this,
|
const self = this;
|
||||||
pie = d3.layout.pie()
|
let pie = d3.layout.pie()
|
||||||
.sort(null)
|
.sort(null)
|
||||||
.value(function (d)
|
.value(function (d)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.PyramidChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.PyramidChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.ScatterplotChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.ScatterplotChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.VWaterfallChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.VWaterfallChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
jsOMS.Chart.WaterfallChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
jsOMS.Chart.WaterfallChart.prototype.drawData = function (svg, x, y, dataPointEnter, dataPoint)
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset[0].points, function (c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
jsOMS.Message.Notification.Browser.BrowserNotification.prototype.requestPermission = function()
|
jsOMS.Message.Notification.Browser.BrowserNotification.prototype.requestPermission = function()
|
||||||
{
|
{
|
||||||
let self = this;
|
const self = this;
|
||||||
|
|
||||||
if(Notification.permission !== 'granted' && Notification.permission !== 'denied') {
|
if(Notification.permission !== 'granted' && Notification.permission !== 'denied') {
|
||||||
Notification.requestPermission(function(permission) {
|
Notification.requestPermission(function(permission) {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
this.dragNDrop = new jsOMS.UI.DragNDrop(this.app);
|
this.dragNDrop = new jsOMS.UI.DragNDrop(this.app);
|
||||||
this.generalUI = new jsOMS.UI.GeneralUI();
|
this.generalUI = new jsOMS.UI.GeneralUI();
|
||||||
|
|
||||||
let self = this;
|
const self = this;
|
||||||
this.domObserver = new MutationObserver(function(mutations) {
|
this.domObserver = new MutationObserver(function(mutations) {
|
||||||
const length = mutations.length;
|
const length = mutations.length;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user