Permalink
Browse files

Update minified version of Froogaloop

  • Loading branch information...
bdougherty committed Jan 2, 2012
1 parent b8f94a6 commit 6d8ee08290758634d7aa16a864126d1fd38ef4ad
Showing with 9 additions and 10 deletions.
  1. +5 −6 javascript/froogaloop.js
  2. +4 −4 javascript/froogaloop.min.js
View
@@ -128,8 +128,8 @@ var Froogaloop = (function(){
method: method,
value: params
});
-
- if(url.substr(0, 2) === '//') {
+
+ if (url.substr(0, 2) === '//') {
url = window.location.protocol + url;
}
@@ -247,11 +247,10 @@ var Froogaloop = (function(){
* @return url (String): Root domain of submitted url
*/
function getDomainFromUrl(url) {
-
- if(url.substr(0, 2) === '//') {
+ if (url.substr(0, 2) === '//') {
url = window.location.protocol + url;
}
-
+
var url_pieces = url.split('/'),
domain_str = '';
@@ -282,7 +281,7 @@ var Froogaloop = (function(){
}
// IE
else {
- window.attachEvent('onmessage', onMessageReceived, false);
+ window.attachEvent('onmessage', onMessageReceived);
}
// Expose froogaloop to the global object

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 6d8ee08

Please sign in to comment.