Jonathan Frederic
e519371402
Merge pull request #7093 from jasongrout/model-views
...
Make the model.views dict a dict of promises for views
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Jason Grout
13c1b95fbd
Make the model.views dict a dict of promises for views
...
Otherwise, there is a race condition where the model doesn't know about views until they are actually created.
11 years ago
Jason Grout
63f8566c6f
Wait for any promises returned by a view's render method before considering the view created
...
This lets a view wait on children views to be created before considering itself created.
Thanks to @ssunkara for catching this.
11 years ago
Jason Grout
e6a8ef00e0
Catch errors after our then()s, instead of in parallel with them (this missing exceptions)
...
When an error is thrown in a then() success handler, it doesn't call the same then()'s error handler.
I also made all of the utils.reject handlers verbose to aid in debugging.
11 years ago
Jason Grout
2b96a97118
Simplify error-handling code
...
Thanks to @jdfreder for this change.
11 years ago
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
907bde3b25
Address review comments
11 years ago
Jonathan Frederic
3c949aad92
Remove message promise.
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
bbcd5cb55f
Bug fixes
11 years ago
Jonathan Frederic
3870bb571b
Use rsvp.js for Promises
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
1b9948d178
Add some error handling for creating views and models
11 years ago
Jason Grout
686e73dfdf
More simplifications due to promises
11 years ago
Jason Grout
4412c12929
Simplify code by using Promises in a better way; try_load -> load
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
Jason Grout
ff680583c1
initial take on promises
11 years ago
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
db10ae8f2d
s/target_name/widget_class
11 years ago
Jonathan Frederic
3cb5ac6fbb
Clarified API for the create_model function,
...
Also added a test!
11 years ago
Jonathan Frederic
fbca0bfa3f
Rebase fixes.
11 years ago
Jonathan Frederic
5a655b24da
Fixed typo.
11 years ago
Jonathan Frederic
2b5ebb9e8f
Make Python push initial state.
...
Also added initial state push callback.
11 years ago
Jonathan Frederic
e7ee9c12b3
Enable widget instanciation from front-end.
11 years ago
Thomas Kluyver
031530da42
Support specifying requirejs modules for widget models
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
4b968ece0b
s/target_name/model_name
11 years ago
Jonathan Frederic
24096b0f45
Separate widget model name from com target name.
11 years ago
Thomas Kluyver
825284bc6d
Remove superfluous error checking
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
c4a9cf9020
Fix logic
11 years ago
Thomas Kluyver
09b10dcb86
Make changes suggested by @jdfreder
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
Tarun Gaba
fb540c52f5
Added jquery in define
12 years ago
Sylvain Corlay
70cacc642a
Solving #5997 : instances of WidgetView (that are not instances of DOMWidgetView) do not trigger widget_area.show anymore.
12 years ago
Jonathan Frederic
b15633a89e
Fix all the tests
12 years ago
Jonathan Frederic
2ba8945cab
Fix all the bugs!
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
0da779d101
Done with major changes,
...
fixed widget IPython. references
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago