Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Remove Deprecated Ember.K #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addon/components/bubble-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default ChartComponent.extend(FloatingTooltipMixin, {

showDetails: Ember.computed('isInteractive', function() {
if (this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return function(data, i, element) {
Expand All @@ -57,7 +57,7 @@ export default ChartComponent.extend(FloatingTooltipMixin, {

hideDetails: Ember.computed('isInteractive', function() {
if (this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return function(data, i, element) {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/horizontal-bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const HorizontalBarChartComponent = ChartComponent.extend(FloatingTooltipMixin,

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand All @@ -205,7 +205,7 @@ const HorizontalBarChartComponent = ChartComponent.extend(FloatingTooltipMixin,

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pie-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const PieChartComponent = ChartComponent.extend(FloatingTooltipMixin,

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}
return (d, i, element) => {
var content, data, formatLabelFunction, value;
Expand All @@ -401,7 +401,7 @@ const PieChartComponent = ChartComponent.extend(FloatingTooltipMixin,

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (d, i, element) => {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/scatter-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const ScatterChartComponent = ChartComponent.extend(LegendMixin, FloatingTooltip

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand All @@ -329,7 +329,7 @@ const ScatterChartComponent = ChartComponent.extend(LegendMixin, FloatingTooltip

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/stacked-vertical-bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ const StackedVerticalBarChartComponent = ChartComponent.extend(LegendMixin,

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down Expand Up @@ -779,7 +779,7 @@ const StackedVerticalBarChartComponent = ChartComponent.extend(LegendMixin,

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down
6 changes: 3 additions & 3 deletions addon/components/time-series-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ const TimeSeriesChartComponent = ChartComponent.extend(LegendMixin,

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down Expand Up @@ -599,7 +599,7 @@ const TimeSeriesChartComponent = ChartComponent.extend(LegendMixin,

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down Expand Up @@ -984,7 +984,7 @@ const TimeSeriesChartComponent = ChartComponent.extend(LegendMixin,
series.enter()
.append('g').attr('class', 'series')
.append('path').attr('class', 'line');

series.exit()
.remove();
},
Expand Down
4 changes: 2 additions & 2 deletions addon/components/vertical-bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ const VerticalBarChartComponent = ChartComponent.extend(LegendMixin,

showDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down Expand Up @@ -525,7 +525,7 @@ const VerticalBarChartComponent = ChartComponent.extend(LegendMixin,

hideDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

return (data, i, element) => {
Expand Down
4 changes: 2 additions & 2 deletions addon/mixins/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default Ember.Mixin.create({

showLegendDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

var _this = this;
Expand Down Expand Up @@ -284,7 +284,7 @@ export default Ember.Mixin.create({

hideLegendDetails: Ember.computed('isInteractive', function() {
if (!this.get('isInteractive')) {
return Ember.K;
return () => {};
}

var _this = this;
Expand Down
6 changes: 3 additions & 3 deletions dependencies/ember-addepar-mixins/resize_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Ember.AddeparMixins = Ember.AddeparMixins || Ember.Namespace.create();
Ember.AddeparMixins.ResizeHandlerMixin = Ember.Mixin.create({
resizeEndDelay: 200,
resizing: false,
onResizeStart: Ember.K,
onResizeEnd: Ember.K,
onResize: Ember.K,
onResizeStart(){},
onResizeEnd(){},
onResize(){},
endResize: Ember.computed(function() {
return function(event) {
if (this.isDestroyed) {
Expand Down