code: function handler() {
  		// Get the current orientation.
  		var orientation = get_orientation();
  
  		if ( orientation !== last_orientation ) {
  			// The orientation has changed, so trigger the orientationchange event.
  			last_orientation = orientation;
  			win.trigger( event_name );
  		}
  	}
docs: If the event is not supported natively, this handler will be bound to the window resize event to simulate the orientationchange event.