Coder Social home page Coder Social logo

Comments (6)

latentflip avatar latentflip commented on June 19, 2024

It's pretty similar to Backbone.Events and so should support the same methods.

Have you tried it?

from ampersand-events.

dschissler avatar dschissler commented on June 19, 2024

No but I'm near to doing it. It will take me some hours to convert my Marionette R&D skeleton to Ampersand (to port some old pure Backbone code). I'm considering just using Events.createEmitter() since I don't think that I need multiple channels.

from ampersand-events.

getdave avatar getdave commented on June 19, 2024

@dschissler did you ever use Radio with ampersand?

from ampersand-events.

dschissler avatar dschissler commented on June 19, 2024

No. I might try that soon since my code has settled down a bit since all of the structure is ampersand now. I'll let you know about that.

from ampersand-events.

getdave avatar getdave commented on June 19, 2024

@dschissler That would be great. I really like Backbone Radio and so being able to utilise with Ampersand would be a big win.

from ampersand-events.

dschissler avatar dschissler commented on June 19, 2024

@getdave Sorry for the long delay. The backend took a long time. So far it seems to be wiring up well with:

backbone_shim user module

'use strict';
import Events from 'ampersand-events';

export default {
  Events: Events
}

webpack config

    alias: {
      underscore: 'lodash',
      backbone: 'backbone_shim',
      ...
    },

globalCh user module

'use strict';
import Radio from 'backbone.radio';

export default Radio.channel('global');

I think that its best to use a globalCh module because you can wire it up with different libraries.

from ampersand-events.

Related Issues (7)

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.