From 5da55123b0a87fd7101021fb64e0ec22fe7f0960 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Tue, 25 Oct 2011 09:50:35 -0400 Subject: [PATCH] demos : hash-history : make Opera always use jQuery fixes #102 --- _posts/demos/2011-06-13-hash-history.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_posts/demos/2011-06-13-hash-history.html b/_posts/demos/2011-06-13-hash-history.html index a616d04..4c320fc 100644 --- a/_posts/demos/2011-06-13-hash-history.html +++ b/_posts/demos/2011-06-13-hash-history.html @@ -77,6 +77,11 @@ category: demos sortAscending: true, layoutMode: 'masonry' }; + + // ensure no transforms used in Opera + if ( $.browser.opera ) { + defaultOptions.transformsEnabled = false; + } {% include random-sizes.js %} @@ -149,7 +154,7 @@ category: demos // get options object from hash var hashOptions = window.location.hash ? $.deparam.fragment( window.location.hash, true ) : {}, // 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 options = $.extend( {}, defaultOptions, hashOptions, { animationEngine: aniEngine } ); // apply options from hash