Skip to main content

Bug Tracker

Side navigation

#9054 closed bug (duplicate)

Opened May 03, 2011 04:16AM UTC

Closed May 05, 2011 02:01PM UTC

Last modified May 05, 2011 02:01PM UTC

jQuery failed to trigger the ready callback function on BlackBerry 4.6 web Browser

Reported by: Raymond Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

To fix this I had to modify jQuery to check for a if a null value as returned from the getComputedStyle(div, null) method.

if ( document.defaultView && document.defaultView.getComputedStyle ) {

div.style.width = "1px";

div.style.marginRight = "0";

// fix for blackberry 4.6

var cs = document.defaultView.getComputedStyle(div, null)||{};

jQuery.support.reliableMarginRight = ( parseInt(cs.marginRight, 10) || 0 ) === 0;

}

Attachments (0)
Change History (3)

Changed May 03, 2011 04:22AM UTC by Raymond comment:1

The above code was not properly formatted when this bug was created.

Here's a copy of the fix on jsFiddle - http://jsfiddle.net/9sDSf/

Changed May 05, 2011 02:01PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Changed May 05, 2011 02:01PM UTC by dmethvin comment:3

Duplicate of #8763.