Skip to content

Instantly share code, notes, and snippets.

@satyr
Created July 23, 2009 13:29
Show Gist options
  • Save satyr/152915 to your computer and use it in GitHub Desktop.
Save satyr/152915 to your computer and use it in GitHub Desktop.
var flag;
function reset(){ flag = 'off' }
function ubiquityLoad_resetFlag(U){
U.msgPanel.addEventListener('popuphidden', reset, false);
}
CmdUtils.CreateCommand({
name: 'test flag reset',
argument: noun_arb_text,
preview: function pv(pb){
pb.innerHTML = flag;
flag = 'on';
},
});
reset();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment