import Em from 'ember';
import LlamaBodyCell from './llama-body-cell';
var get = Em.get;

var LlamaNumberCell = LlamaBodyCell.extend({
	classNames: 'number',
	getValue: function () {
		var id = this.get('column.name');
		var row = this.get('row');
		var value = get(row, id);
		return value;
	}
});

export default LlamaNumberCell;

import Em from 'ember';
import LlamaBodyCell from './llama-body-cell';
var computed = Em.computed;

var LlamaNumberCell = LlamaBodyCell.extend({
	classNames: 'number',
	formatted: computed('value', function () {
		var value = this.get('value');
		var number = Number(value);
		return number;
	})
});

export default LlamaNumberCell;

Refactor number cell to use `formatted` property
Refactor number cell to use `formatted` property
