function works outside of object will not work when called inside an object
问题 I am trying to inject my page when it loads with a template using mustache. If i call my function to grab and inject the DOM with this data outside of the portfolio{} object it works perfectly fine and the HTML is injected on page and data is displayed correctly. but if i try to place my function inside of the portfolio{} object and call the function it will not work. This makes no since to me what so ever and i am getting quite frustrated with it. If anyone knows what might be causing this