PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/library/platform/DOMOpera.py

http://pyjamas.googlecode.com/
Python | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | bfaa293bc26da35cff9f2cb7522ce102 MD5 | raw file
1def eventGetButton(evt):
2    JS("""
3    var button = evt.button;
4    if(button == 0){
5        return 1;
6    } else {
7        return button;
8    }
9    """)