Coder Social home page Coder Social logo

feplay's Introduction

  • 👋 Hi, I’m @txchen
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

feplay's People

Contributors

jinzhou avatar martinmuzatko avatar nickcox avatar txchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

feplay's Issues

Webpack Async Example Error

riotjs-loader works fine the in the example without async, but in async throws:

ERROR in ./src/view/detail-view.html Module build failed: Error: TypeError: unknown: resolveModuleSource is not a function at Object.module.exports (/Users/gnb/Sites/Playground/feplay/riot_webpack_async/node_modules/riotjs-loader/index.js:32:11) @ ./src/riotTags.js 9:0-34

Perceivable lag when typing into input/textarea

The Markdown Editor and Grid Component demos in riot_vue exhibit perceivable input lag. This is because they listen to keyup event which fires late. To match the behavior of the Vue implementation, I suggest using to the input event.

TL;DR: change onkeyup to oninput in <input> and <textarea> tags.

Disable callbacks when unmounting tags

Hello, @txchen ! And thanks for the great code example!

I'm using your riot_webpack as a base to one project. It is a great help!

But today I saw that everytime I do in a tag:

riot.control.on(signal, func)

I need to also do:

this.on('unmount', () => riot.control.off(signal, func))

If not, when the tag is mounted again, the old callback will still be there, so func will be run 2X. Here, after some remounts the callback would be running +30X.
I tested your code now, and it seems to have the same problem.

Am I misunderstanding something?

Here the problem was fixed by adding this to a base mixing (used by all tags):

    onControl: function(signal, func) {
        riot.control.on(signal, func)
        this.on('unmount', () => riot.control.off(signal, func))
    },

And calling it instead of riot.control.on.

Update riot_vue

Vuejs hit 1.0. And it now has some new examples, convert them to riot.

Post to tastejs/todomvc

I think this Riot 2.0 example should be posted to the official Todo MVC repository. They are not too open to new suggestions so I suggest to read the contributing document very closely.

Here is a very interesting discussion why we were rejected last time.

Willing to take a shot?

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.