Bob,

OK, I can be a bit more specific on this problem. The JS alert error is not 
related to my call back minimization approach. It’s just related to set picking 
assignBond_X. With any value of X, if a bond to H is clicked the resulting 
action is:

1) Alert error on the click.
2) All H atoms on the non-hydrogen atom of the bond are deleted.

14.3.16_2015.09.14

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com

> On Sep 22, 2015, at 7:03 PM, Otis Rothenberger <osrot...@chemagic.com> wrote:
> 
> Bob,
> 
> I’m not sure how significant this is, but I just found an error report in 
> 14.3.16_2015_08_25 that I never noticed before. I use bond-click message 
> callback to change  bond order. If you inadvertently do a click/change for a 
> bond on a C-H bond, you get the JS error alert below. For the website, I use 
> 14.2.4, and I do not get this error. I should mention that I do a very quick 
> minimize on on bond changes.
> 
> Otis
> 
> 
> TypeError: null is not an object (evaluating 'a.bonds') try/catch path:
> 0 function (b, c) 
> args[0]=TypeError: null is not an object (evaluating 'a.bonds')
> args[1]=function () {a.instantialize(this,arguments);}
> 1 JM.BondCollection.setBondOrder(a, c) 
> args[0]=0
> args[1]=1
> 2 JS.CmdExt.assignBond(a, b) 
> args[0]=0
> args[1]=1
> 3 JS.CmdExt.assign() 
> 4 JS.CmdExt.dispatch(a, b, d) 
> args[0]=4098
> args[1]=false
> args[2]=Token[keyword(2/0x1002) value="assign"],Token[keyword(2/0x64...
> 5 JS.ScriptEval.checkExtension(a) 
> args[0]=4098
> 6 JS.ScriptEval.processCommand(a) 
> args[0]=4098
> 7 JS.ScriptEval.commandLoop(a) 
> args[0]=true
> 8 JS.ScriptEval.dispatchCommands(a, b, c) 
> args[0]=false
> args[1]=false
> args[2]=false
> 9 JS.ScriptEval.executeCommands(a, b) 
> args[0]=false
> args[1]=true
> 
> 
> 
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
> 




------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to