Steven Black
f8516d4dbe
jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery coding standards in anticipation of adding Opera Mini feature detection. Passes jsHint except for the James Padolsey/ jdalton non-UA-based IE version check, which is OK. All tests pass.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-11 20:47:37 -04:00
scottjehl
af7451d5ff
switched to boolean check and removed the second value. Now this is only true in old webos, where it should be.
2011-04-14 18:10:22 -04:00
Kin Blas
9a431c89a5
Added $.support.eventCapture to detect support for listening for the event capture phase. We need this to disable vmouse touch support for WP7. We may be able to work around the lack of capture support in the near future, but until then, we fallback to just supporting mouse events.
2011-03-14 12:39:03 -07:00
scottjehl
d3a170db09
moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked.
2011-03-14 00:20:25 -04:00
Kin Blas
02c9264f0d
Fix for issue 613 - Jquery Mobile ignores original 'base' tag defined in HTML
...
- Fixed baseTagTest() in jquery.mobile.support.js, so that it uses any pre-existing base tag for testing. This fixes the bug on Webkit (Safari) where the relative paths for links were being resolved/expressed with the document path instead of the original base path.
- Modified the base code in jquery.mobile.navigation.js so that it uses the initial path of a pre-existing base tag, instead of always using the document path. This means that a document with a URL such as:
http://foo.com/a/b/c#docs/pages/index.html
That uses a base tag like:
<base href="http://foo.com/bar/ ">
Will resolve properly:
http://foo.com/bar/docs/pages/index.html
so the mobile page gets loaded properly.
- Reduced the path.get() function down to a couple of regexp replace() calls.
2011-01-18 09:18:22 -08:00
scottjehl
9420083a7b
quick update to set the base.href back to the starting path, just in case, as some browsers may retain the base href after the element is removed from the DOM. Explained better here: b2add677f0
2010-12-11 13:50:07 -05:00
scottjehl
3cb0e3c2d0
fixed typo in propExists. thx @johnbender
2010-11-22 15:48:14 -05:00
scottjehl
93179f9a3d
updated comment about license to match other jQuery projects - MIT "or" GPL
2010-11-19 22:47:47 -05:00
scottjehl
28a10ec74d
Moved all of the media query and responsive design related scripting to jquery.mobile.media.js. This plugin can run independent of mobile core, with the exception that it does bind to orientationchange, which is defined in the events js. Fixes #388
2010-11-17 11:55:15 -05:00
scottjehl
14b4c9a167
moved $.media function over to $.mobile object
2010-11-11 21:45:17 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
95ff242b13
updated cssTransitions support test - was formerly failing in webkit, as it was checking for type of object, rather than function. Needs to be filled out with other css transitions events, along with our CSS itself.
...
Also updated the animationComplete callback and got rid of a pointless timeout.
2010-11-06 14:36:15 -04:00
scottjehl
e4e8f1ddc4
added closures to event and support
2010-11-01 14:33:54 -04:00
scottjehl
4af621fd9d
removed an old comment
2010-11-01 14:32:42 -04:00
scottjehl
521b8e5eb7
moved the base tag check call to within the support extend.
2010-10-22 16:45:47 -04:00
scottjehl
e58c833f8c
used indexOf instead of match.
2010-10-22 16:41:56 -04:00
scottjehl
70bba7064a
Added a support test $.support.dynamicBaseTag and workaround for browsers that don't support dynamically updating BASE tag (Firefox is the only one I've seen so far. In those browsers, when a new page is fetched, any elements with href and src attributes will have their attribute prefixed with a proper base url (if they don't already start with an external site http address, "/", "#", or any protocol such as "mailto:, etc).
...
In the process, the BASE element and related functions are only implemented if that support is true, and BASE urls now use a full URL path when set, to avoid issues with browsers that may need that.
Fixes #263 , Fixes #221
2010-10-22 12:31:25 -04:00
scottjehl
58ddf30bb6
add class to html when box-shadow is not supported.
2010-10-13 18:05:02 -04:00
scottjehl
47e35832a9
Added two properties to support:
...
- boxShadow (tests that the property is defined and window.blackberry is false, as BB's shadows have no feathering)
- scrollTop (tests that the property is defined and that a webos property or two isn't defined, as Palm always reports 0)
Added an existence test for CSS properties, which is used for cssPseudoElement and boxShadow).
2010-10-13 17:25:14 -04:00
scottjehl
7b37d7a7ab
removed support tests for display, position, overflow, floatClear, as media query support infers these are all good to go!
2010-10-07 15:46:46 -04:00
scottjehl
de53cfb930
Made all css and JS rely upon media query support. ("only all"). We can go back to the previous system, but so far, this seems to create a better divide than our previous support tests provided. 1-person discussion here: https://github.com/jquery/jquery-mobile/issues/#issue/29
2010-10-07 15:15:59 -04:00
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00