rwaldron / jquery-hive

jQuery Plugin for creating and managing web workers across implementations. Includes Hive.Pollen.js - the thread-safe utility library for connecting worker threads to the Hive.
http://weblog.bocoup.com/javascript-web-workers-from-basics-to-jquery-hive-part-i
203 stars 24 forks source link

remove browser sniffing #9

Closed ericjang closed 12 years ago

ericjang commented 12 years ago

Problem description here:

http://stackoverflow.com/questions/8528610/web-workers-behave-differently-in-webkit-than-firefox/8535673#8535673

question was resolved by switching

sync : false

, but it would be nice if polen.js could have the same default behavior for all browsers to avoid confusion.

Thanks!

rwaldron commented 12 years ago

Agreed, completely. That was a terrible hack to fix a poorly assessed problem in Safari in 2009

rwaldron commented 12 years ago

I'm going to rename the prop to async (because that makes sense) and set it to true, (because that makes sense). Doing so passes the existing tests.