Jason Grout
da8cab76dd
Clean up promises code some more.
11 years ago
Jonathan Frederic
f9d730d01e
Address @takluyver 's review comments
11 years ago
Jonathan Frederic
0d591619c6
Make all tests async display safe
11 years ago
Jonathan Frederic
56c5020a84
bool_test passing with slimerjs
11 years ago
Jonathan Frederic
bed3a4cfda
use es6
11 years ago
Jonathan Frederic
8c149c9112
Current state with lots and lots of debugging junk
11 years ago
Jonathan Frederic
b3c49fce66
Move the display Promise into a lower level method,
...
into the create view method of the widget manager.
This makes sure that views created by parent views
are also accounted for in the state/display order
guarantee.
11 years ago
Jonathan Frederic
fed878fed9
Don't throw Errors with Objects as the message/
11 years ago
Jonathan Frederic
bbcd5cb55f
Bug fixes
11 years ago
Jonathan Frederic
3870bb571b
Use rsvp.js for Promises
11 years ago
Jonathan Frederic
c67dcc0dc3
Finished adding error handling.
11 years ago
Jonathan Frederic
1d1572421f
Add a WrappedError class
11 years ago
Jonathan Frederic
b16b2e8749
Make display also pend on set_state.
11 years ago
Jason Grout
a4331a93cc
Fix some this vs. that errors, as well as returning some promises to wait for fulfillment
11 years ago
Jason Grout
8e769a012f
Load the utils module
11 years ago
Jason Grout
686e73dfdf
More simplifications due to promises
11 years ago
Jonathan Frederic
c41dcb35e9
Proxy console.error calls
11 years ago
Jonathan Frederic
5a745be138
Add Promise support to models.
11 years ago
Jonathan Frederic
78c0bbdb4d
Fix view rendering order.
11 years ago
Jonathan Frederic
4beda5d0fb
Initial stab at adding promises to the widget framework.
11 years ago
Sylvain Corlay
604d0bb666
A String is an object
11 years ago
Sylvain Corlay
4b6c753f3f
Dates are JavaScript objects, and _pack_models returns an empty object
11 years ago
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
a68df8a8b1
Address @minrk 's review comments.
11 years ago
Jonathan Frederic
2b5ebb9e8f
Make Python push initial state.
...
Also added initial state push callback.
11 years ago
Jonathan Frederic
79670e8afb
Merge pull request #6494 from takluyver/widget-comm-require
...
Allow widget views to be loaded from require modules
11 years ago
Jonathan Frederic
176529cce2
Make sure DOMWidget _css is set after basic style traits
11 years ago
Thomas Kluyver
590ba19ac3
Clean up some JS code
11 years ago
Thomas Kluyver
1ff846520b
Put callbacks for create_view and create_child_view in options
...
And add errback support
11 years ago
Thomas Kluyver
5953a3f874
Allow widget views to be loaded from require modules
...
This required refactoring things that create widget views to use
callbacks instead of return values.
11 years ago
Jonathan Frederic
60bf0f5b2f
s/apply_update/set_state
11 years ago
Jonathan Frederic
b5195e1b17
Merge pull request #6548 from SylvainCorlay/widget_views_by_id
...
Make WidgetModel.views be an object indexed by view id
11 years ago
sylvain.corlay
60925f0a1a
hasOwnProperty
11 years ago
Sylvain Corlay
d8635fc1cc
on_atomic_change -> on_some_change
11 years ago
Sylvain Corlay
b6a0f60d3f
Make Widget.views be an object indexed by view id
11 years ago
Sylvain Corlay
a9fca81e95
Set default view to None and never display widget with no view
11 years ago
Sylvain Corlay
fb336de4ed
register bare views
11 years ago
Brian E. Granger
4ec1a3b41e
Merge pull request #6235 from jdfreder/addclass
...
Remove add/remove_class and set/get_css.
11 years ago
Jonathan Frederic
d4d554052e
Address problems found in in-person review
11 years ago
Jonathan Frederic
6637b768cc
Merge pull request #6463 from SylvainCorlay/bulk_update
...
Bulk update of widget attributes
12 years ago
Sylvain Corlay
cd782c916d
state_lock loop
12 years ago
Sylvain Corlay
769e7fa108
rename to on_atomic_change
12 years ago
Jonathan Frederic
591b2b3ad7
Tabs->Spaces
12 years ago
Jonathan Frederic
02e3a58030
s/fore_color/color
...
s/back_color/background_color
12 years ago
Sylvain Corlay
e809fcb545
stop listening
12 years ago
Sylvain Corlay
75cb63fba2
Adding a comment and renaming on_bulk_change to on_change
12 years ago
Sylvain Corlay
06747c1ada
simplification of trigger destroy
12 years ago
Sylvain Corlay
222dc5fb3e
Destroy backbone model on comm:close
12 years ago
sylvain.corlay
e77b21cb22
optimization of WidgetModel.apply_update
12 years ago
sylvain.corlay
6eea0c37aa
Added on_bulk_change method in WidgetModel
12 years ago