Questions tagged [twitter-flight]

Flight is a lightweight, component-based JavaScript framework that maps behavior to DOM nodes. Twitter uses it for their web applications.

According to its repository README, Flight is no longer under active development:

Flight is not under active development. New pull requests will not be accepted unless they fix core bugs or security issues.

23 questions
0
votes
2 answers

Can twitter flightjs do component within component

In Facebook react.js, you can compose component within component, or maybe mix and match. I'm wondering if twitter flight can do the same thing. if so, can anyone gives me an example? this is what I have so far: define(function (require) { var…
Jim
  • 1,123
  • 13
  • 29
0
votes
1 answer

Using Bacon.js with FlightJS

Is Bacon compatible with Twitter's Flight? I saw this talk where they are apparently being used together (https://www.youtube.com/watch?v=D0N1NdE-9u0) but couldn't get a minimal example to work. This is my flight component with traditional event…
estolua
  • 676
  • 4
  • 11
0
votes
2 answers

Triggering events inside $.each loop

I have a data component, which retrieves an array objects via ajax and sends it over to the ui component for display. May approach is to traverse the the array inside the data component and send each element over to the ui component (instead of…
Jamie White
  • 1,560
  • 3
  • 22
  • 48
0
votes
1 answer

Jasmine test event with asynchronous call

The issue is to test the event handlers with asynchronous internal methods, which is executed by SDK like facebook. the plain test is: describe('Listens to someevent', function () { it('and triggers anotherevent', function () { …
Cassius
  • 153
  • 1
  • 14
0
votes
2 answers

CoffeeScript classes in twitter Flight

I woud like to define flightjs components with CoffeeScript classes instead of functions but it seems to not be possible because flight ignores objects' prototypes. I can't write: define ['flight/component'], (defineComponent) -> class…
endianness
  • 21
  • 5
0
votes
2 answers

Handling events for multiple instances of Twitter Flight components

I'm aiming for a decoupled UI architecture. I want the carousel and pagination components to be separate from each other; but with the pagination able to listen for changes on a uiCarouselMoved event. Example:…
joecritch
  • 1,095
  • 2
  • 10
  • 25
0
votes
1 answer

Is subtemplates an useful or an harmful feature if combined with a framework?

In my company, we are are evaluating several template engines in order to choose one to use with flight. Subtemplates are perceived by some developers here as a feature, while i have the opinion that they don't fit so good with javascript…
danza
  • 11,511
  • 8
  • 40
  • 47
0
votes
1 answer

Creating an application with Twitter flight, components dont want to render more than once

I'm working with Twitter Flight to construct a javascript application that interacts with an API we develop. I'm working on an architecture that will allow our users to login and out, or register for an account. At a high level, my manual testing…
voxobscuro
  • 2,132
  • 1
  • 21
  • 45
1
2