Browse Source

demos : hash-history : make Opera always use jQuery

fixes #102
pull/139/head
David DeSandro 14 years ago
parent
commit
5da55123b0
  1. 7
      _posts/demos/2011-06-13-hash-history.html

7
_posts/demos/2011-06-13-hash-history.html

@ -78,6 +78,11 @@ category: demos
layoutMode: 'masonry' layoutMode: 'masonry'
}; };
// ensure no transforms used in Opera
if ( $.browser.opera ) {
defaultOptions.transformsEnabled = false;
}
{% include random-sizes.js %} {% include random-sizes.js %}
var setupOptions = $.extend( {}, defaultOptions, { var setupOptions = $.extend( {}, defaultOptions, {
@ -149,7 +154,7 @@ category: demos
// get options object from hash // get options object from hash
var hashOptions = window.location.hash ? $.deparam.fragment( window.location.hash, true ) : {}, var hashOptions = window.location.hash ? $.deparam.fragment( window.location.hash, true ) : {},
// do not animate first call // do not animate first call
aniEngine = hashChanged ? 'best-available' : 'none', aniEngine = hashChanged ? ( $.browser.opera ? 'jquery' : 'best-available' ) : 'none',
// apply defaults where no option was specified // apply defaults where no option was specified
options = $.extend( {}, defaultOptions, hashOptions, { animationEngine: aniEngine } ); options = $.extend( {}, defaultOptions, hashOptions, { animationEngine: aniEngine } );
// apply options from hash // apply options from hash

Loading…
Cancel
Save