Skip to content

Commit

Permalink
fixes #19042, Update Axes.js to access Label correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett van de Sande authored and dylans committed Aug 10, 2017
1 parent 1d4bf81 commit a36876c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions drawing/annotations/Label.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
define(["exports", "dojo/_base/lang", "../util/oo", "../stencil/Text"],
function(exports, lang, oo, Text){

// TODO: why not just return Label?

exports.Label = oo.declare(
Text,
function(/*Object*/options){
Expand Down
4 changes: 2 additions & 2 deletions drawing/stencil/_Base.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define(["dojo", "dojo/fx/easing", "../util/oo", "../annotations/BoxShadow",
"../annotations/Angle", "../annotations/Label", "../defaults"],
function(dojo, easing, oo, BoxShadow, Angle, LabelExports, defaults){
function(dojo, easing, oo, BoxShadow, Angle, Label, defaults){

/*=====
var StencilArgs = {
Expand Down Expand Up @@ -844,7 +844,7 @@ var Base = oo.declare(
// text: String
// The text to set as the label.
if(!this._label){
this._label = new LabelExports.Label({
this._label = new Label.Label({
text:text,
util:this.util,
mouse:this.mouse,
Expand Down
6 changes: 3 additions & 3 deletions drawing/tools/custom/Axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ var Axes = oo.declare(

// NOTE: Not passing style into text because it's changing it
var props = {align:"middle", valign:"middle", util:this.util, annotation:true, container:this.container, mouse:this.mouse, stencil:this};
this.labelX = new Label(lang.mixin(props,{
this.labelX = new Label.Label(lang.mixin(props,{
labelPosition:this.setLabelX
}));
this.labelY = new Label(lang.mixin(props,{
this.labelY = new Label.Label(lang.mixin(props,{
labelPosition:this.setLabelY
}));
if(this.style.zAxisEnabled){
this.labelZ = new Label(lang.mixin(props,{
this.labelZ = new Label.Label(lang.mixin(props,{
labelPosition:this.setLabelZ
}));
}
Expand Down

0 comments on commit a36876c

Please sign in to comment.