// // Author: J. Odeyer // Date: 2011/02/05 // // // Fix Solution Source: http://forums.asp.net/t/1348484.aspx posted by twilsontometa // // this script is intented to fix a bug in MicrosoftAjax.js script which appears // with Google Chrome browser while trying to load a js file with scriptManager. // Without this fix we actually end up with the following error with Chrome (WebKit based browser): // ["Cannot read property '_notified' of null"] // This is due to the fact that MicrosoftAjax.js does not reconize WebKit based browsers // this script extends MicrosoftAjax.js script and fix the problem // Sys.Browser.WebKit = {}; if (navigator.userAgent.indexOf('WebKit/') > -1) { Sys.Browser.agent = Sys.Browser.WebKit; Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]); Sys.Browser.name = 'WebKit'; } if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();