Comments (6)
(This is the Chrome Javascript console)
from overture.
Your first guess is correct: Overture has an event loop of its own with multiple queues to handle efficient propagation of values, UI drawing, &c. It’s O.RunLoop
(the built docs, incidentally, are out of date, but adequate).
You need to either run O.RunLoop.flushAllQueues()
after your changes, or wrap it in O.RunLoop.invoke()
like this:
O.RunLoop.invoke(() => {
FastMail.mail.screens.compose.instance.set('subject', 'New subject');
});
(BTW, beginPropertyChanges
and endPropertyChanges
are generally not needed; they’re only needed if you’re updating multiple properties simultaneously that must be indeed changed simultaneously—rare—or if a value may be updated more than once and you don’t want to trigger observers for the intermediate values—also quite uncommon. There are a few more related situations where they’re purely for efficiency, and those are most of the uses in the FastMail UI.)
I was thinking about this very issue of convenience a week or two ago, and whether there was any way of hooking into the dev tools to run O.RunLoop.flushAllQueues()
at the end of every user invocation; I didn’t find a way of doing it (all I managed was killing the browser by an injudicious console
Proxy which managed a self-DoS!). If you know or can find any way of doing it, I’d be delighted.
from overture.
Thanks, really really appreciated.
from overture.
@chris-morgan Hi Chris, I'm having new problems here in that whilst I'm calling:
FastMail.mail.draft.set('cc', val)
... within a O.RunLoop.invoke
closure, the UI is not being updated.
from overture.
At this point I’m going to say we’re not going to help you with it. Overture is open source (and that’s why I answered your initial query, because it pertained directly to Overture), but the FastMail web interface itself isn’t. If from what you can access you can figure it out, well and good; but we’re not going to provide any direct assistance on it.
from overture.
@chris-morgan Totally understand and appreciate, don't worry. This was not only technically (cheekily?) the wrong venue for such a question, it probably should not be asked anyway. (Saying that, I have some slight aversion to open source projects that have a single main user with essentially a single usage of.. but that's a different, wider topic to be had over a $beverage sometime!)
from overture.
Related Issues (20)
- Browser Support HOT 2
- Split Loader to a new Repo HOT 1
- Array methods motivation question HOT 1
- Question about bindings HOT 4
- Documentation rendering HOT 2
- Example Todo: Can not run in Iceweasel HOT 8
- How to/Who will add more views? HOT 1
- RPCSource#handle a public method, function map clarification HOT 2
- Todo Fails to Work HOT 1
- Todo example doesn't run locally
- overture + angular/ionic HOT 5
- Nested SwitchViews can place their contents out of order
- CSS code for views HOT 1
- performance claims
- Bind JS Object to a view HOT 1
- Website should be served over HTTPS HOT 1
- Fetch next window? HOT 3
- SearchTextView has no documentation
- How to capture 'enter key' press on TextView? HOT 1
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.
from overture.