R doesn't need to be global.. yet..

This commit is contained in:
Sanj 2011-06-24 21:41:32 +05:30
parent 23e38e90e4
commit 7d50c9ef6c

View File

@ -1,9 +1,9 @@
var R; // var R;
$(function() { $(function() {
$.getJSON("radia.json", {}, function(data) { $.getJSON("radia.json", {}, function(data) {
R = data; var R = data;
var $texts = []; var $texts = [];
$('text').each(function() { $('text').each(function() {
var $tspan = $(this).children('tspan').eq(0); var $tspan = $(this).children('tspan').eq(0);