vitmalina/w2ui — pull request #28 by kktos (2013-03-01 18:35:48+00:00)
Title: As requested, if no onError then default handling

did as you said. slightly changed your code to spare me a var ;)
take care, no block declaration for var in js. scope is the whole function