From 08209720900d21eb453afb3b1995d4932a121c82 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Tue, 11 Jan 2011 14:07:31 -0500 Subject: [PATCH] fixing naming and tests removing alert[#254] --- plugins/googleMap/popcorn.googleMap.html | 4 ++-- plugins/googleMap/popcorn.googleMap.js | 2 -- plugins/googleMap/popcorn.googleMap.unit.js | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/googleMap/popcorn.googleMap.html b/plugins/googleMap/popcorn.googleMap.html index e0bd0fb..9a216f1 100644 --- a/plugins/googleMap/popcorn.googleMap.html +++ b/plugins/googleMap/popcorn.googleMap.html @@ -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', diff --git a/plugins/googleMap/popcorn.googleMap.js b/plugins/googleMap/popcorn.googleMap.js index 6693bd1..0d16e1e 100644 --- a/plugins/googleMap/popcorn.googleMap.js +++ b/plugins/googleMap/popcorn.googleMap.js @@ -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 }); } diff --git a/plugins/googleMap/popcorn.googleMap.unit.js b/plugins/googleMap/popcorn.googleMap.unit.js index 172c26e..9badfe3 100644 --- a/plugins/googleMap/popcorn.googleMap.unit.js +++ b/plugins/googleMap/popcorn.googleMap.unit.js @@ -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', -- 2.43.0