Skip to content

Martin Algesten algesten

Martin Algesten
  • Martin Algesten 1b0db2b
    made it possible to trace which rpc times out
Martin Algesten
Martin Algesten
Martin Algesten
  • Martin Algesten b4c4122
    decode some header fields typographically
Martin Algesten
  • Martin Algesten 6c764c9
    typographic conversion of &tstr; and  
Martin Algesten
Martin Algesten

I think of render as something quite lightweight. In my views it ensures what's on screen reflects what's in my model. Lightweight being the key h…

Martin Algesten

Alright. Lets kick this off. What do we mean by LayoutView.render() Is it just ensuring the regions are in place? (Some DOM inspection would do). A…

Martin Algesten

The only nagging feeling I get is that we make no distinction between rendering, as in telling the child view to redraw, and opening, as in attachi…

Martin Algesten

Woohoo :)

Martin Algesten

:cookie:

Martin Algesten

Happy happy!

Martin Algesten

The original code empties $el (not el). What if we do the same but with innerHTML? How about something like this.$el.each(function(){this.innerHTML…

Martin Algesten

The original code empties $el (not el). What if we do the same but with innerHTML? How about something like this.$el.each(function(){this.innerHTML…

Martin Algesten
Martin Algesten
Martin Algesten
Martin Algesten
Martin Algesten
Martin Algesten

@jmeas I don't have a big problem with region.show calling render(). My renders are typically non-expensive – quite the opposite to _reinitializeRe…

Martin Algesten

Here's (sort of) your fiddle updated showing the problem. http://jsfiddle.net/5gx3V/12/ Uncomment one of the App.mainRegion.show(layout); and it st…

Martin Algesten

@jasonLaster You are calling new BtnView() on every onShow() which means you are recreating the DOM event listener every time. Try instantiating it…

Martin Algesten

Great! Of course I'll help reviewing it. Just holler.

Martin Algesten

@jmeas I wholeheartedly agree :)

Something went wrong with that request. Please try again.