Skip to content

Commit d59e340

Browse files
author
Philip Guo
committed
upgrade to jQuery 1.6.0
1 parent 12ee1e7 commit d59e340

3 files changed

Lines changed: 37 additions & 7 deletions

File tree

‎TODO‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,21 @@ Hi Philip
151151

152152
I hope you are keeping well!
153153

154-
Scripts fail in the visualizer when the user has a variable called “length”, because somehow the front-end jquery is doing something wrong. It happens both when used as a local or as a global variable. See my image of what is happening on your site. (Tried in both Firefox and Internet Explorer).
154+
Scripts fail in the visualizer when the user has a variable called
155+
“length”, because somehow the front-end jquery is doing something wrong.
156+
It happens both when used as a local or as a global variable. See my
157+
image of what is happening on your site. (Tried in both Firefox and
158+
Internet Explorer).
155159

156-
It looks like a jquery bug (I haven’t tried moving to a newer version – I’m using 1.3.2 that I got from your version).
160+
It looks like a jquery bug (I haven’t tried moving to a newer version –
161+
I’m using 1.3.2 that I got from your version).
157162

158-
The iterators + lambda functions appear to be misbehaving when varname has the value “length”.
159-
So I’ve had to rip out the iterators and gone for vanilla javascript loops, which has solved it for me.
163+
The iterators + lambda functions appear to be misbehaving when varname
164+
has the value “length”. So I’ve had to rip out the iterators and gone
165+
for vanilla javascript loops, which has solved it for me.
160166

161-
I’ve done changes similar to this in 4 places in function updateOutput in file edu_python.js
167+
I’ve done changes similar to this in 4 places in function updateOutput
168+
in file edu_python.js
162169

163170

164171
// $.each(curTrace[i].globals, function(varname, val) {

‎index.html‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@
2626
<head>
2727
<title>Online Python Tutor: Write Python code online and single-step through its execution</title>
2828

29-
<!-- jQuery 1.3.2 -->
30-
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
29+
<!-- jQuery 1.6.0 -->
30+
31+
<!-- local version for offline testing -->
32+
<script type="text/javascript" src="jquery.min.js"></script>
33+
34+
<!-- online version hosted by Google -->
35+
<!--
36+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
37+
-->
3138

3239

3340
<!-- load these local files only when localTesting == true

‎jquery.min.js‎

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)