﻿
// this code is to handle Google Chrome/Safari issues on MS.Ajax since
// Google Chrome/Safari uses the WebKit rendering engine, which is shared by other browsers such as Apple's Safari

Sys.Browser.WebKit = {}; // Chrome and Safari is consider as web kit
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';
}

//Microsoft will fix this bug in the toolkit asap, 
//so eventually this function will no longer be necessary. 
//But in the meantime, this solution solves the problem with AjaxControlToolkit scripts
//not being loaded properly during partial updates.

// For More Info please visit http://forums.asp.net/t/1252014.aspx
