Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

How to log what's been returned by define.get

$
0
0
Hey guys, in my model i have something like this:

define : {
            streetname: {
            set: function(newVal){
                    console.log('CustomerAddress:streetname set:', newVal);
                    return newVal;
            },
            get: function () {
                  // how do i log the value of streetname been returned?
            }
            },
        },

I can't work out a way to log the value of the attribute been returned....

Any suggestions... ?



Viewing all articles
Browse latest Browse all 3491

Trending Articles