]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixing naming and tests removing alert[#254]
authorAnna Sobiepanek <annaopensource@gmail.com>
Tue, 11 Jan 2011 19:07:31 +0000 (14:07 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Tue, 11 Jan 2011 19:07:31 +0000 (14:07 -0500)
plugins/googleMap/popcorn.googleMap.html
plugins/googleMap/popcorn.googleMap.js
plugins/googleMap/popcorn.googleMap.unit.js

index e0bd0fb69bec4651a06b501ba134f5acdbbd1950..9a216f1766a497208a61362fe7c2929d7085a527 100644 (file)
@@ -10,7 +10,7 @@
       var p = Popcorn('#video')
       .volume(0)
       .play() 
-      .googleMap({
+      .googlemap({
         start: 0, // seconds
         end: 20, // seconds
         type: 'ROADMAP',
@@ -19,7 +19,7 @@
         long: -79.403323,
         zoom: 10
       } )
-      .googleMap({
+      .googlemap({
         start: 0, // seconds
         end: 30, // seconds
         type: 'ROADMAP',
index 6693bd145b9847768f9995e152f44d05477b05b6..0d16e1e2cd1973046f15f89e9f6d8dcfe3d466ad 100644 (file)
@@ -93,7 +93,6 @@ var googleCallback;
               // calls an anonymous function called on separate thread
               geocoder.geocode({ 'address': options.location}, function(results, status) {
                 if (status === google.maps.GeocoderStatus.OK) {
-                  alert( "making geolocation");
                   options.lat  = results[0].geometry.location.lat();
                   options.long = results[0].geometry.location.lng(); 
                   options._location = new google.maps.LatLng(options.lat, options.long);
@@ -101,7 +100,6 @@ var googleCallback;
                 } 
               });
             } else {
-              alert("making regular map");
               options._location = new google.maps.LatLng(options.lat, options.long);
               options._map = new google.maps.Map(options._newdiv, {mapTypeId: google.maps.MapTypeId[options.type] || google.maps.MapTypeId.HYBRID });  
             }
index 172c26ed6373de6b1fceecfa831bdeadb462307d..9badfe3ffa1e946b4eb8bcafeb1344c38caf8084 100644 (file)
@@ -18,7 +18,7 @@ test("Popcorn Google Map Plugin", function () {
   
   stop();
    
-  ok ('googleMap' in popped, "googleMap is a mehtod of the popped instance");
+  ok ('googlemap' in popped, "googleMap is a mehtod of the popped instance");
   plus();
   
   ok ( document.getElementById('map').innerHTML === "", "initially, there is nothing inside the map" );
@@ -27,7 +27,7 @@ test("Popcorn Google Map Plugin", function () {
   ok ( document.getElementById('map2').innerHTML === "", "initially, there is nothing inside the map2" );
   plus();
   
-  popped.googleMap({
+  popped.googlemap({
         start: 0, // seconds
         end: 5, // seconds
         type: 'ROADMAP',
@@ -36,7 +36,7 @@ test("Popcorn Google Map Plugin", function () {
         long: -79.403323,
         zoom: 10
       } )
-      .googleMap({
+      .googlemap({
         start: 0, // seconds
         end: 5, // seconds
         type: 'SATELLITE',