@Deepak_Negi_Sunny wrote:
Dear Members,
I am getting this error:
ember.debug.js:16316 Uncaught Error: Assertion Failed: Ember.Object.create no longer supports defining methods that call _super.
This is when I have two models (classes) in models folder say: A and B and both classes are created using Ember-cli
A has properties called a1, a2, a3 and a4
and B has property called b1 and I am trying to set b1 in B using setB methods which is as following:
import A from '../models/A'; setB: function() { if(Ember.isEmpty(this.b1)) { this.set('b1', A.create({a1: something1, a2: something2, a3: something3, a4: something4})); //This line generates above error } }
We use this types of declarations throughout the app.
In this, please tell a solution.
Regards
Dn
Posts: 1
Participants: 1