Commit Graph

52 Commits

Author SHA1 Message Date
Oliver Salzburg
faa961b5d3 chore(platform): remove duplicate event listener attachment 2015-02-13 13:44:16 +01:00
Adam Bradley
d24ac308c3 test(platform): iOS from iPod user agent 2015-01-09 08:54:22 -06:00
Adam Bradley
b8112aba2a style(): minify/style updates 2015-01-09 08:45:11 -06:00
vjanssens
7485cf2b00 Added usage information for Platform methods 2015-01-02 21:27:08 +01:00
Adam Bradley
9f1f86d18b Merge pull request #2608 from pauljandrew/patch-1
docs(platform): version is a number
2014-12-06 21:19:24 -06:00
Max Lynch
e44c2b5228 Fixed cheeky assignment 2014-12-04 14:14:22 -06:00
Max Lynch
f471f56f74 feat(platforms): allow overriding platform in querystring 2014-12-04 14:10:14 -06:00
Adam Bradley
9513eb60ba style(jscs): code formatting 2014-12-03 01:04:40 -06:00
Paul Andrew
cdaa324b5f Update platform.js
This is returning a number rather than a string. Not sure if the doc or the code is incorrect. To return a String you'd need to return device().v instead of device().version.
2014-11-25 18:21:41 +00:00
chaffeqa
6b29d44ce3 Correctly handle window loaded states
Previously if this script was executed after the window was loaded, none of the callbacks would fire.

See https://developer.mozilla.org/en-US/docs/Web/API/document.readyState for definition of detecting the `load` event.

TODO: Potentially this is redundent, since maybe using `ionic.DomUtil.ready` would mean one less listener.  However I don't know if the listeners attached to `ionic.Platform.ready` require the `document.readyState` to be `complete` rather than only `interactive`.

Linked to #2229
2014-09-16 19:11:19 -04:00
Perry Govier
b1f94da27e fix(platform): fullscreen method will not offset footer by 20px 2014-09-09 17:05:03 -05:00
Raymond Camden
9c370fdd3a Update platform.js
I added a bit of detail to ready function to remind folks that - in the context of a web browser - even though ready has fired it is *NOT* going to allow for device specific features. It may be too obvious, but I really think a reminder here will help.
2014-09-08 11:19:04 -05:00
Adam Bradley
150f116e53 refactor(platform): do not console.error on device get
With user agent fallbacks, its unnecessary to print out errors if the
device plugin isn’t there.
2014-09-04 23:38:01 -05:00
Andrew
7e20424a87 test(platform): fix unit tests for setting platform to null 2014-07-21 08:22:07 -06:00
Andrew Joslin
05dd7b1864 feat(ionic.Platform): add ionic.Platform.setGrade() function
Closes #1104
2014-06-11 11:15:33 -06:00
Adam Bradley
4928b996d6 set WP8 as a grade-b device 2014-05-09 09:33:35 -05:00
Adam Bradley
08e4b3d95b feat(platform): added isWindowsPhone() method 2014-05-07 14:48:36 -05:00
Adam Bradley
5f8e9040bd fix(viewport): Auto update viewport tag 2014-05-02 10:12:48 -05:00
Adam Bradley
5c300dd3e0 refactor(platform): Rename isCordova() to isWebView()
BREAKING CHANGE: ionic.Platform.isCordova() has been renamed to
ionic.Platform.isWebView()
2014-04-07 11:56:11 -05:00
Adam Bradley
b1d9ab84f4 run not ran 2014-04-05 21:28:12 -05:00
Adam Bradley
ead30f2ed5 docs(platform): Explain ionic.Platform.ready() further 2014-04-05 20:46:17 -05:00
Adam Bradley
681a6a2ed7 feat(ready): Add 'platform-ready' css class to the body when the platform is ready 2014-03-20 16:38:59 -05:00
Adam Bradley
f852661979 check StatusBar obj exists before calling it 2014-03-19 13:59:36 -05:00
Adam Bradley
f602674a19 fix docs method names 2014-03-18 13:19:38 -05:00
Adam Bradley
6627aafe05 improve hiding status bar and reduce flickers 2014-03-18 11:56:24 -05:00
Adam Bradley
dc138b4fa3 do not remove cordovans deviceready event listener 2014-03-18 09:04:50 -05:00
Andy Joslin
bd66fc8b28 docs(): remove group tag 2014-03-17 10:24:28 -06:00
Andy Joslin
8619d5e8ec docs(): add groups by topic 2014-03-14 15:14:16 -06:00
Andy Joslin
e9625ded9d docs: add services, utilities 2014-03-11 13:02:36 -06:00
Adam Bradley
181269a2fe do not set a platform if unknown, closes #753 2014-03-09 22:01:38 -05:00
Adam Bradley
a6c47cd3bf fix(platform): Fix Platform.showStatusBar so it can be used multiple times, closes #702 2014-02-28 23:31:13 -06:00
Adam Bradley
631208f1d8 _checkPlatforms refactor 2014-02-24 22:05:00 -06:00
Adam Bradley
b051fa7c9f platform test fix 2014-02-24 14:44:59 -06:00
Adam Bradley
7a3930f6ae improve platform/version/grade fallbacks with user-agents 2014-02-24 13:42:33 -06:00
Adam Bradley
fcd0fa73c4 fix(platform): Update ionic.Platform.is() to check all platforms, closes #604 2014-02-23 21:58:17 -06:00
Adam Bradley
b69b40c826 feat(grade): Set grade in body class depending on platform performance
First draft of how devices play out:

.grade-a:
- iOS
- >= Android 4.4

.grade-b:
- Android >= 4 && < 4.4

.grade-c:
- Android < 4
2014-02-20 20:41:48 -06:00
Adam Bradley
e96a77e5ac wrap exitApp in cordova ready 2014-02-05 20:49:36 -06:00
Adam Bradley
7352be9010 set major and minor platform versions in body css 2014-01-31 20:57:26 -06:00
Adam Bradley
f37b196ff8 refactor ionic.Platform methods 2014-01-31 20:36:39 -06:00
Adam Bradley
25a9e527af ionic.Platform.exitApp(), always run onPlatformReady() 2014-01-31 11:55:31 -06:00
Adam Bradley
2add26afbb readyCallbacks array and platform() method to get name 2014-01-31 10:45:31 -06:00
Adam Bradley
19ac6188aa created Platform.fullScreen and Platform.showStatusBar 2014-01-16 13:52:12 -06:00
Adam Bradley
5c80fc1cd9 update platform ready listeners 2014-01-16 00:25:04 -06:00
Adam Bradley
64d8fd207a platform detect updates 2014-01-14 00:59:25 -06:00
Max Lynch
7e2b909346 Fixed #409 - null device platform (cordova) 2014-01-13 15:49:08 -06:00
Max Lynch
ddadc461c0 Possible solution for #327 - platform detect 2014-01-12 20:46:53 -06:00
Max Lynch
cb75c9de96 Fixed #366 - no Android scroll bouncing by default 2014-01-10 09:52:32 -06:00
Max Lynch
e1ae338b51 Fixed #288, added carousel support to slide box
Also fixed evevt bubbling and incorrect iOS 7 detection in mobile safari
2013-12-18 12:21:52 -06:00
Max Lynch
3ca427501e iOS 7 detection and removed console log 2013-12-17 11:53:51 -06:00
Max Lynch
a705940581 Fixed #273 - android specific title sizes 2013-12-06 10:34:40 -06:00