144,147c144,151
<         var values = query[i].split('=');
<         if (values.length === 2) {
<           Drupal.adminToolbar.state[values[0]] = values[1];
<         }
---
> 	    // adding extra check, to avoid js errors in Chrome, IE and Safari
> 	    // when combined with Js like twitter's widget.js. See => http://drupal.org/node/798764
> 	    if(typeof(query[i]) == 'string'){
> 		var values = query[i].split('=');
> 		if (values.length === 2) {
>           		Drupal.adminToolbar.state[values[0]] = values[1];
> 	        }			
> 	}                
167c171
< };
---
> };
\ No newline at end of file
