Min RK
f7388dd2ea
Merge pull request #4785 from SylvainCorlay/master
...
Replacing a for-in loop by an index loop on an array
12 years ago
Sylvain Corlay
a053ba2419
Replacing a for-in loop by an index loop on an array, to avoid enumerating inherited properties
12 years ago
Brian E. Granger
5e706935e1
Semicolon cleanup.
12 years ago
Brian E. Granger
177fb9bb5d
Fixing css class on cell related to selected, rendered, mode.
12 years ago
Brian E. Granger
06aa0d540d
Using a more specific approach for managing CM focus.
...
I used to try and enter command mode when a cell looses focus. The
problem with that is that focusing an output area would remain in
edit mode.
Now, I bind this logic to the code mirror blur event, so that
focusing the output area enters command mode.
12 years ago
Brian E. Granger
0000e688d6
Code comments and minor fixes.
12 years ago
Brian E. Granger
c1166ea98a
Lots of updates and changes.
...
* Cleaning up the code mirror event handlers.
* Adding logic to prevent calling Notebook.command_mode on cell
focusout.
* Fixing bugs.
12 years ago
Brian E. Granger
40977e545b
Semi working version of basic dual mode UX.
...
As of this point there are lots of things that don't work, but
most of the basic dual mode interactions do work fine.
12 years ago
Brian E. Granger
2a530ff30d
More work on the dual mode UX.
12 years ago
Brian E. Granger
54088a0105
Adding new logic to cells.
12 years ago
Brian E. Granger
2181a29be7
Starting work on select/focus logic.
12 years ago
MinRK
9fc9580256
set cell_type properly first-class in the Cell object
...
- in toJSON
- don't clobber existing value in Cell constructor
12 years ago
MinRK
dd3a1866ff
give Raw Cells a placeholder
...
and make sure cell_type is defined *before* calling TextCell.apply
12 years ago
Matthias BUSSONNIER
33dd73eea4
some optimisation and code cleaning
...
optimisation are not obvious, but order and time of attribute creation
in javascript have impact for VMs apparently (Google IO talk on V8)
12 years ago
Matthias BUSSONNIER
048ccde41b
get rid of most slowdown at notebook loading.
...
1) Do not setOption('mode',new_mode) on CM if new and old mode are the
same. It triggert **a lot** of calculation of bounding box in the
end.
2) Do **not** select cell when loading the notebook it triggers
**a lot** of CM even that check visible things and so on and so
forth. So add a option to add_cell_at_index not to select it
3) jQuery $.attr has some magics, but has a slight overhead on
real native ELEM.setAttribute DOM method. Seem slight improvement
when loads of PNGs on one page
12 years ago
MinRK
37a345bd93
add Cell.is_mergeable method
...
and check it in the Notebook merge methods
13 years ago
Min RK
76f8de32ea
Merge pull request #4064 from Carreau/default_mode
...
Store default codemirror mode in only 1 place
13 years ago
Matthias Bussonnier
b6e5dc0f65
catch if cm_config of other key undefined
13 years ago
Matthias BUSSONNIER
fc8f118610
store default codemirror mode in only 1 place
13 years ago
Matthias BUSSONNIER
13ff842be5
"use strict" in most (if not all) our javascript
...
+ fix one variable leaking in global nameespace
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago