PageRenderTime 77ms CodeModel.GetById 75ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/bsh/commands/unset.bsh

#
Unknown | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 9432482d38db7ca13bc2c892a286c7b0 MD5 | raw file
 1/**
 2	"Undefine" the variable specifed by 'name' (So that it tests == void).
 3	<p>
 4	<em>Note: there will be a better way to do this in the future.  This is 
 5	currently equivalent to doing namespace.setVariable(name, null);</em>
 6*/
 7
 8bsh.help.unset = "usage: unset( name )";
 9
10void unset( String name ) {
11	if ( arg == null )
12		return;
13
14	this.caller.namespace.setVariable(name, null);
15}