jammit

jquery mobile orientation detection

。_饼干妹妹 提交于 2020-01-04 06:39:26
问题 I am using jquery-mobile and it seems it doesn't detect the landscape setting. What I am using: iphone simulator Version 4.3 (238.2) from Xcode Version 4.1 Build 4B110 jquery mobile I tried to do this in my mobile.js $(window).bind('orientationchange resize', function(event){ alert(event.orientation) }) and turning the simulator around just keeps giving me an alert that says "portrait" when it clearly should be landscape. am i doing something wrong here? I also tried using media queries in

jquery mobile orientation detection

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 06:37:06
问题 I am using jquery-mobile and it seems it doesn't detect the landscape setting. What I am using: iphone simulator Version 4.3 (238.2) from Xcode Version 4.1 Build 4B110 jquery mobile I tried to do this in my mobile.js $(window).bind('orientationchange resize', function(event){ alert(event.orientation) }) and turning the simulator around just keeps giving me an alert that says "portrait" when it clearly should be landscape. am i doing something wrong here? I also tried using media queries in

Is there a way to alias/anchor an array in YAML?

ε祈祈猫儿з 提交于 2019-11-30 06:28:54
问题 I'm using Jammit to package assets up for a Rails application and I have a few asset files that I'd like to be included in each of a few groups. For example, I'd like Sammy and its plugins to be in both my mobile and screen JS packages. I've tried this: sammy: &SAMMY - public/javascripts/vendor/sammy.js - public/javascripts/vendor/sammy*.js mobile: <<: *SAMMY - public/javascripts/something_else.js and this: mobile: - *SAMMY but both put the Sammy JS files in a nested Array, which Jammit can't

Is there a way to alias/anchor an array in YAML?

谁说胖子不能爱 提交于 2019-11-28 20:07:36
I'm using Jammit to package assets up for a Rails application and I have a few asset files that I'd like to be included in each of a few groups. For example, I'd like Sammy and its plugins to be in both my mobile and screen JS packages. I've tried this: sammy: &SAMMY - public/javascripts/vendor/sammy.js - public/javascripts/vendor/sammy*.js mobile: <<: *SAMMY - public/javascripts/something_else.js and this: mobile: - *SAMMY but both put the Sammy JS files in a nested Array, which Jammit can't understand. Is there a syntax for including the elements of an Array directly in another Array? NB : I