In some cases global.Placeholders is undefined, this is specially the case with IE11 (don't ask me why, I couldn't tell). Therefore the following snippet will fail:
if ( !global.Placeholders.nativeSupport ) {
This willl work:
if ( !global.Placeholders || !global.Placeholders.nativeSupport ) {
In some cases global.Placeholders is undefined, this is specially the case with IE11 (don't ask me why, I couldn't tell). Therefore the following snippet will fail:
if ( !global.Placeholders.nativeSupport ) {
This willl work:
if ( !global.Placeholders || !global.Placeholders.nativeSupport ) {