developer mode

Is it possible to check if a solution is running under developer? I want to disable some toolbar items in the client via application.setToolbarVisible(‘edit’,false). But this also lets the item disappear in the developer where I want it to remain!.

i will make a javascript method: application.isRunningInDeveloper() for this. (2.0RC10)

Great Johan, thank your!!!