cdn.ractivejs.org's People
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.