target: 'map',
lat: 43.665429,
long: -79.403323,
- zoom: 10
+ zoom: "10"
} )
.googlemap({
start: 0, // seconds
}
// reset the location and zoom just in case the user plaid with the map
options._map.setCenter(location);
- options._map.setZoom(options.zoom || 0);
+ if ( options.zoom ) {
+ if ( typeof options.zoom !== "Number" ) {
+ options.zoom = +options.zoom;
+ }
+ } else {
+ options.zoom = 0;
+ }
+ options._map.setZoom( options.zoom );
}
};
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" );
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',
long: -79.403323,
zoom: 10
} )
- .googleMap({
+ .googlemap({
start: 0, // seconds
end: 5, // seconds
type: 'SATELLITE',
<!DOCTYPE html>
<html>
<head>
- <title>Popcorn tagThisPerson test</title>
+ <title>Popcorn tagthisperson test</title>
<link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
<script src="../../test/qunit/qunit.js"></script>
<!--
<script src="popcorn.tagThisPerson.unit.js"></script>
</head>
<body>
- <h1 id="qunit-header">Popcorn tagThisPerson Plugin</h1>
+ <h1 id="qunit-header">Popcorn tagthisperson Plugin</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
-test("Popcorn tagThisPerson Plugin", function () {
+test("Popcorn tagthisperson Plugin", function () {
var popped = Popcorn("#video"),
expects = 6,
stop();
- ok ('tagThisPerson' in popped, "tagThisPerson is a method of the popped instance");
+ ok ('tagthisperson' in popped, "tagthisperson is a method of the popped instance");
plus();
equals ( tagdiv.innerHTML, "", "initially, there is nothing inside the tagdiv" );
plus();
- popped.tagThisPerson({
+ popped.tagthisperson({
start: 0, // seconds
end: 5, // seconds
person: 'Anna Sob',
target: 'tagdiv'
} )
- .tagThisPerson({
+ .tagthisperson({
start: 3, // seconds
end: 10, // seconds
person: 'Scott',