Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Docs: API/Events - removed line about <html> getting class portrait/landscape #3919

Merged
merged 1 commit into from

2 participants

@jaspermdegroot
Collaborator

Removed line about the current orientation being added as class to the HTML element. This is no longer applicable since 1.0 if I'm not mistaken.

@jaspermdegroot
Collaborator

@agcolom Hi Anne,

Maybe you can pull this one in?
It applies to master and all releases since 1.0. See http://jquerymobile.com/test/docs/api/mediahelpers.html

Thanks!

Jasper

@agcolom agcolom merged commit 1d0bc0e into jquery:master
@agcolom
Collaborator

Hi Jasper, Yes, did check in my browser and you are correct. Merged your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2012
  1. @jaspermdegroot
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/api/events.html
View
2  docs/api/events.html
@@ -100,7 +100,7 @@ <h4 style="margin:.5em 0">Canceling an elements default click behavior</h4>
<h2>Orientation change event</h2>
<dl>
<dt><code>orientationchange</code></dt>
- <dd>Triggers when a device orientation changes (by turning it vertically or horizontally). When bound to this event, your callback function can leverage a second argument, which contains an <code>orientation</code> property equal to either "portrait" or "landscape". These values are also added as classes to the HTML element, allowing you to leverage them in your CSS selectors. Note that we currently bind to the resize event when <code>orientationchange</code> is not natively supported, or when <code>$.mobile.orientationChangeEnabled</code> is set to false.</dd>
+ <dd>Triggers when a device orientation changes (by turning it vertically or horizontally). When bound to this event, your callback function can leverage a second argument, which contains an <code>orientation</code> property equal to either "portrait" or "landscape". Note that we currently bind to the resize event when <code>orientationchange</code> is not natively supported, or when <code>$.mobile.orientationChangeEnabled</code> is set to false.</dd>
<div class="ui-body ui-body-e">
<h4>orientationchange timing</h4>
Something went wrong with that request. Please try again.