Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
this.model.get('duration') returns different value from json dict

I have this structure:

Object { cid: "c130", attributes: {…}, collection: {…}, _changing: false, _previousAttributes: {…}, changed: {}, _pending: false, _lastTeamSession: false, _events: {…}, _listenId: "l131", … }
​
_changing: false
​
_events: Object { all: (1) […], change: (1) […], destroy: (1) […], … }
​
_lastTeamSession: false
​
_listenId: "l131"
​
_listeners: Object { l32: {…}, l133: {…} }
​
_pending: false
​
_previousAttributes: Object { duration: "00:00", value: 5, format: "1", … }
​
attributes: Object { duration: "53:04", value: 5, format: "1", … }
​​
athlete: Object { cid: "c11", _changing: false, id: 6, … }
​​
duration: "53:04"
​​
format: "1"
​​
teamsession: Object { cid: "c8", __version: 43, _changing: false, … }
​​
value: 5
​​
<prototype>: Object { … }
​
changed: Object { duration: "53:04" }
​
cid: "c130"
​
collection: Object { length: 1, models: (1) […], _listenId: "l31", … }
​
<prototype>: Object { … }

As you can see in attributes I've duration key, and its value is "53:04".

I want to assign this value to a variable using: let duration = this.model.get("duration");, but I obtain that duration's value is "00:00" and I don't understan why... Can anyone help me?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!