1
0
Fork 0
forked from 0x2620/oxjs

use Ox.print instead of console.log

This commit is contained in:
j 2010-02-06 19:29:16 +05:30
commit 9eac279745
7 changed files with 16 additions and 16 deletions

View file

@ -65,7 +65,7 @@
latLng = Ox.getLatLng((e.clientX - left) / width, (e.clientY - top) / height);
Ox.getPlacemarks(latLng.lat, latLng.lng, function(data) {
var length = data.results.length;
console.log(data)
Ox.print(data)
if (length && data.results[length - 1].types[0] == "country") {
var $img = $("#" + data.results[length - 1].address_components[0].short_name);
if (!$img.length) {
@ -73,7 +73,7 @@
if (data.results.length) {
var location = data.results[0].geometry.location,
xy = Ox.getXY(location.lat(), location.lng());
//console.log(+new Date, place.name, location, xy);
//Ox.print(+new Date, place.name, location, xy);
var $img = $("<img/>")
.attr({
id: data.results[0].address_components[0].short_name,
@ -98,7 +98,7 @@
$img.removeClass("hover");
}, 1000);
} else {
//console.log("no results", place, data)
//Ox.print("no results", place, data)
}
});
} else {
@ -169,10 +169,10 @@
lng: data.results[0].geometry.viewport.getNorthEast().lng().toFixed(10)
}
};
console.log(JSON.stringify(d))
Ox.print(JSON.stringify(d))
json.push(d);
} else {
console.log("no results", place, data)
Ox.print("no results", place, data)
}
});
if (places.length) {