Modified the "get" and "set" methods

Fixed the "get" and "set" methods by moving the settings.oEvent property
to ensure the error message would be thrown if the element had not been
inialized prior to calling the "get" and "set" methods