]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merging
authorrwldrn <waldron.rick@gmail.com>
Thu, 20 Jan 2011 17:20:06 +0000 (12:20 -0500)
committerrwldrn <waldron.rick@gmail.com>
Thu, 20 Jan 2011 17:22:11 +0000 (12:22 -0500)
popcorn.js

index d05ef60e3d23b57ac65cc797f7cc4fcfb0c03409..289a9bdb8327b8f0d9cadb0e6234f8671eae4b41 100644 (file)
   
   Popcorn.xhr = function ( options ) {
     
-<<<<<<< HEAD
-    if ( ( options.dataType || "" ).toLowerCase() === "jsonp" ) {
-=======
     if ( options.dataType && options.dataType.toLowerCase() === "jsonp" ) {
->>>>>>> 742ed140bbafc94a08a0024346c62eeff8407d07
-      
+
       Popcorn.xhr.getJSONP( 
         options.url,
         options.success
       script = document.createElement("script"), 
       paramStr = url.split("?")[1], 
       fired = false, 
-<<<<<<< HEAD
-      params, callback;
-
-    script.src = url; 
-
-    params = paramStr.split("&");
-    
-    callback = params.length ? params[ params.length - 1 ].split("=")[1] : Popcorn.guid("jsonp");
-=======
       params = [], 
       callback;
 
     }
     
     script.src = url;
-    
->>>>>>> 742ed140bbafc94a08a0024346c62eeff8407d07
+
     
     if ( callback ) {
       //  define the jsonp success callback globally
 
     head.insertBefore( script, head.firstChild );
   
-<<<<<<< HEAD
-  }
-=======
   };
->>>>>>> 742ed140bbafc94a08a0024346c62eeff8407d07
-  
+
   
   //  Exposes Popcorn to global context
   global.Popcorn = Popcorn;