I have the same problem, i tried parseInt() without succes.
This is where the values are coming from:
-
var layoutSettings = {
'body':{
'line-height':{
'max':150,
'min':0
},
'font-size':{
'max':4,
'min':300
},
'letter-spacing':{
'max':30,
'min':0
},
},
-
};
This is the function that gets the value:
-
function layout(curInputID,attribute,type)
{
return layoutSettings[curInputID][attribute][type];
}
And this is the problem code...
var "attribute
" has the following values during the
eachfont-size
line-height
letter-spacing
- $('.textStyle div').each(function(i){
var id=$(this).attr('id');
var attribute = id.replace('s_','');
$('#'+id+' div').slider({
min: layout('body',attribute,'min'),
max: layout('body',attribute,'max'),
value:10,
slide: function(event, ui){},
stop: function(event, ui){}
});
});
The problem is that i only get the "G is undefined" error when i slide "font-size". The attirbutes "line-height" and "letter-spacing" are working fine.
I tried several things and nothing works.. Also i can't find a any solution with Google.
Please help! :)