From 523ae5d425c6bbe9b7cd6d588d36eab7a2b74205 Mon Sep 17 00:00:00 2001 From: azaozz Date: Wed, 25 Jul 2012 22:43:04 +0000 Subject: [PATCH] Update ImgAreaSelect to 0.9.9 that fixes IE7 stack overflow error, props c3mdigital, fixes #21363, fixes #21348 for trunk git-svn-id: http://core.svn.wordpress.org/trunk@21347 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js b/wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js index d349d0532e..28860461b6 100644 --- a/wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js +++ b/wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js @@ -1,6 +1,6 @@ /* * imgAreaSelect jQuery plugin - * version 0.9.8 + * version 0.9.9 * * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net) * @@ -706,7 +706,7 @@ $.imgAreaSelect = function (img, options) { setSelection(selX(x1), selY(y1), selX(x1), selY(y1)); /* If this is an API call, callback functions should not be triggered */ - if (!this instanceof $.imgAreaSelect) { + if (!(this instanceof $.imgAreaSelect)) { options.onSelectChange(img, getSelection()); options.onSelectEnd(img, getSelection()); } @@ -866,7 +866,7 @@ $.imgAreaSelect = function (img, options) { * properties */ function styleOptions($elem, props) { - for (option in props) + for (var option in props) if (options[option] !== undefined) $elem.css(props[option], options[option]); } @@ -1143,7 +1143,7 @@ $.imgAreaSelect = function (img, options) { * attribute seems to trigger it. The check is for version 7 and above to * accommodate for MSIE 9 running in compatibility mode. */ - if ($.browser.msie && $.browser.version >= 7) + if (!imgLoaded && $.browser.msie && $.browser.version >= 7) img.src = img.src; };