Why cant i use getItem() function in ProductView.P...
# suitecommerce
l
Why cant i use getItem() function in ProductView.Price.View.js?
t
Try logging
this.model
and see if it’s defined?
l
it is defined
i keep getting this error ProductViews.Option.View.js:83 Uncaught TypeError: this.model.getItem is not a function at child.getContext (ProductViews.Option.View.js:83) at child.addOnItemContext (Warranty.Item.Options.View.js:15) at child.getContext (underscore.js:675) at child.getTemplateContext (Backbone.View.render.js:48) at child.compileTemplate (Backbone.View.render.js:80) at child._render (Backbone.View.render.js:127) at child.render (Backbone.View.render.js:173) at child.createCell (Backbone.CollectionView.js:166) at Backbone.CollectionView.js:255 at Function..each..forEach (underscore.js:103)