[Solved] Return objects from nested functions?

[ad_1]

Change the code to this:

return {
                    getallrates: function(source, $scope){
                        return getRate(source, $scope);                            
                    },
                    init: function(xml) {
                        parseXml(xml);
                    },
                }

4

[ad_2]

solved Return objects from nested functions?