This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
// Monkey patch for jQuery 1.7 to optimize animation | |
// Details: | |
// jQuery(this).is(":hidden")) access elem.offsetHeight property in each animation step. | |
// This patch enables lazy access to elem.offsetHeight property only when it is necessary. | |
// 2012/07/26: this patch is unnecessary on jQuery 1.8. fixed by https://github.com/jquery/jquery/pull/869 | |
var elemdisplay = {}, | |
iframe, iframeDoc, | |
rfxtypes = /^(?:toggle|show|hide)$/, | |
rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, |
NewerOlder