#7858: Add Content-Type to JS and declare KEY_* vars
------------------------+---------------------------------------------------
Reporter: mpatel | Owner: was
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.3.1
Component: notebook | Keywords:
Work_issues: | Author: Mitesh Patel
Upstream: N/A | Reviewer:
Merged: |
------------------------+---------------------------------------------------
Changes (by mpatel):
* cc: mhansen (added)
* status: new => needs_review
Old description:
> From Firebug's console:
> {{{
> syntax error
> KEY_SHIFT = "16,16"
> }}}
> We should declare each variable explicitly (to avoid implicit globals),
> e.g.,
> {{{
> #!js
> var KEY_SHIFT = "16,16";
> }}}
New description:
!WebKit browsers (e.g., Chrome, Chromium, Safari) are picky about missing
`Content-Type` headers (cf. #6742). In particular, we should add them to
dynamically generated !JavaScript.
Also, from Firebug's console:
{{{
syntax error
KEY_SHIFT = "16,16"
}}}
We should declare each variable explicitly (to avoid implicit globals),
e.g.,
{{{
#!js
var KEY_SHIFT = "16,16";
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7858#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.