In one of my view I need to recopy an attribute value into another attribute.
Here is the code in my code in coffeescript
class MyFactoryView extends Backbone.View
initialize: ->
@model.fetch reset: true
@model.set('NewStatus', @model.get('CurrentStatus'))
This code throws an undefined exception when I call get.
But if I do a console.log @model, I can see the CurrentStatus
in attributes.