[sagenb] 89/157: Do not write into the global jmolInfo defaults

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 8fdc89ac25b0facf2b815f7978fdb37c55bed797
Author: Volker Braun <vbraun.name at gmail.com>
Date:   Sat Oct 4 17:03:13 2014 +0100

    Do not write into the global jmolInfo defaults
---
 sagenb/data/sage/js/jmol_lib.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sagenb/data/sage/js/jmol_lib.js b/sagenb/data/sage/js/jmol_lib.js
index 4cefb99..6da4a66 100644
--- a/sagenb/data/sage/js/jmol_lib.js
+++ b/sagenb/data/sage/js/jmol_lib.js
@@ -86,7 +86,7 @@ function jmol_applet(size, image, url, cell_num, functionnames) { //makes a new
     Jmol.setDocument(document);
     //Where am I?  Need to know in cases where I need to write directly to this cell.
     cell_ID = 'sage_jmol'+cell_num;
-    jmolStatus.jmolInfo[appletID] = jmolInfo; //set default values
+    jmolStatus.jmolInfo[appletID] = jQuery.extend({}, jmolInfo);; // shallow copy default values
     jmolStatus.jmolInfo[appletID].coverImage = image; //this should be the image url
     jmolStatus.jmolInfo[appletID].script = "script "+url; //this should be the script url
     //Check whether to load 3-D live

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list