You are not returning anything from the function. Without a return
statement, the function will return undefined
(unless called with new
, but that's a different matter).
storage: function() {
ptCalc.ui.storage.val()
}
should be
storage: function() {
return ptCalc.ui.storage.val()
}