Git Product home page Git Product logo

cdn.ractivejs.org's People

Contributors

evs-chris avatar rich-harris avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdn.ractivejs.org's Issues

Template not updating on set() update() add() etc.

I am coding up a game based on RactiveJS, but, I've came accross a problem which I posted yesterday on stackoverflow here: http://stackoverflow.com/questions/23880064/ractivejs-doesnt-update-all-vars-on-set-or-update

I have a modal, which gets initialised on clicking a building, everything works fine, the functions sent with data work flawlessly as the logs show, but, when using:

contentTPL.set('village.buildings[1].level',3);
Or using
contentTPL.add('village.buildings[1].level'); // updates the global value as expected
// staticData.village.buildings[1].level will result 3, but the template wont update.

The visual results are none, even though the values are set, because triggering
contentTPL.get('village.buildings[1].level') will return 3 , the data is set as expected, but the template wont get updated.

Template code looks like this:
template

JS code :
jscode

The JS values are correct, don't worry about them, I'm using console.log at every function to check if the values are ok, and they are indeed, but when using contentTPL.update(), template doesn't get updated. To keep in mind that other ractive instances update() function works fine ! It's not a global problem, it's just this one instance which stretches my nerves.

Please advise, I don't know what else to do.

cdn.ractivejs.org/{version}/ractive.min.js please

Expected: http://cdn.ractivejs.org/0.4.0/ractive.min.js
Actual: http://cdn.ractivejs.org/releases/0.4.0/ractive.min.js
Prior art:
//cdn.jsdelivr.net/ractive/0.4.0/ractive.min.js
//cdnjs.cloudflare.com/ajax/libs/ractive.js/0.3.7/ractive.min.js

I can see how you wanted to keep all the versions in a sub-folder though :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.