PDA

View Full Version : Define a module pattern, help



alberto01
24 Sep 2010, 9:54 AM
Hi,
I want to create an object to use in my application.
this item should show a Ext.msg with preset messages.
something like Err.showMessage (402), the function should display a message associated with the code 402.

(This can be easily done by creating an array with the messages: msg[402] = 'test')

My problem is to define the correct Module Pattern object ... Can anyone make me some examples? Please?