Standarizing Names
This commit is contained in:
1 parent
6421a96d44
commit
bf07bcc14e
3 files changed
+21
-12
No files matched your search
+3
-3
@@ -336,7 +336,7 @@
|
||||
if (datetime.valueOf() >= band.begin && datetime.valueOf() <= band.end) {
|
||||
|
||||
thisObject.currentBand = band;
|
||||
thisObject.container.eventHandler.raiseEvent("Current Band Changed", thisObject.currentBand);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentBand);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -411,7 +411,7 @@
|
||||
if (datetime.valueOf() >= band.begin && datetime.valueOf() <= band.end) {
|
||||
|
||||
thisObject.currentBand = band;
|
||||
thisObject.container.eventHandler.raiseEvent("Current Band Changed", thisObject.currentBand);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", thisObject.currentBand);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -597,7 +597,7 @@
|
||||
innerBand: band
|
||||
};
|
||||
|
||||
thisObject.container.eventHandler.raiseEvent("Current Band Changed", currentBand);
|
||||
thisObject.container.eventHandler.raiseEvent("Current Record Changed", currentBand);
|
||||
}
|
||||
|
||||
browserCanvasContext.lineWidth = 0.2;
|
||||
|
||||
+17
-8
@@ -3,24 +3,33 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel ()
|
||||
|
||||
var thisObject = {
|
||||
fitFunction: undefined,
|
||||
onEventRaised: onEventRaised,
|
||||
onRecordChange: onRecordChange,
|
||||
container: undefined,
|
||||
draw: draw,
|
||||
getContainer: getContainer,
|
||||
initialize: initialize
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
};
|
||||
|
||||
var container = newContainer();
|
||||
container.initialize();
|
||||
thisObject.container = container;
|
||||
|
||||
container.frame.containerName = "Bollinger Band";
|
||||
thisObject.container = newContainer();
|
||||
thisObject.container.initialize();
|
||||
thisObject.container.frame.containerName = "Bollinger Band";
|
||||
|
||||
let currentBand;
|
||||
let panelTabButton
|
||||
|
||||
return thisObject;
|
||||
|
||||
function finalize() {
|
||||
thisObject.container.finalize()
|
||||
thisObject.container = undefined
|
||||
thisObject.fitFunction = undefined
|
||||
|
||||
currentBand = undefined
|
||||
panelTabButton.finalize()
|
||||
panelTabButton = undefined
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL;
|
||||
@@ -59,7 +68,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel ()
|
||||
}
|
||||
|
||||
|
||||
function onEventRaised(lastCurrentBand) {
|
||||
function onRecordChange(lastCurrentBand) {
|
||||
|
||||
currentBand = lastCurrentBand;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{
|
||||
"codeName": "BollingerBandsPanel",
|
||||
"moduleName": "BollingerBandsPanel",
|
||||
"event": "Current Band Changed"
|
||||
"event": "Current Record Changed"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user