must be time to go to bed but I cannot figure out how to get the plaftform name out of enyo platform. My goal is simply to write the platform name (ex: android or androidChrome) in a textbox
Can anyone with a fresh mind give me some help?
Thanks in advance
0 ·
Comments
enyo.keys(enyo.mixin({}, enyo.platform, {filter:function(p) { return p != "gesture" && p != "touch" }}))[0]
Select Enyo Core / Platform and then hit the "ViewSource" and see this code line BTW - this ViewSource does no longer work in the nightly sampler:
Please see https://enyojs.atlassian.net/browse/ENYO-3309
Source code is not displayed for all Enyo Core examples on http://nightly.enyojs.com/latest/sampler/
http://jsfiddle.net/K4UFu/
would be grate to see a similar think in core