'data' as an attribute?


#1

What if I have to use the name ‘data’ as an attribute?

I am using the d3 tree-layout libary for svg https://github.com/mbostock/d3/wiki/Tree-Layout which uses a pretty specific json structure (without severely modifying the code)

export default DS.Model.extend({
	clientid: DS.attr(),
	name:  DS.attr(),
	nodetype: DS.attr(),
	data: DS.attr(),
	_children: DS.hasMany('orgtree')
});

as you can see the ‘data’ element conflicts with a pretty basic rule of Ember-Data not to use that name. Is there a work-around?