JavaScript for WordPress Forums Bugs & Issues 1.6.08 – VanillaPress V 0.2 – Pages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29992
    Justin Estrada
    Participant

    If your getting an error from the data.js file it’s because after the pages array of objects their is no comma to set the jsonData variable

    #30002
    Justin Estrada
    Participant

    Also my model.getPosts function works better like this:

    model.getPosts = function() {

    // var posts = JSON.parse( model.getLocalStore() )[‘posts’];
    var posts = model.getLocalStore();
    posts = posts[‘posts’];
    return posts;

    }

    Instead of the commented out line.

    #30096
    Zac Gordon
    Keymaster

    Thanks for the corrections and points Justin!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.