using var makes cartViewModel a local variable (local to this function
$(function() { ... })). Removing it makes it a global variable, so it
can be accessed outside that function.
>
> and just worked ..
>
> How crazy is that ..
> But how could this be ?
>
> Anyway solved .. it seems that if the error comes var viewModel not
> defined while is wel defined removing the var in front of it will make
> it work :-)
>
>
>
> On Aug 11, 2:18 pm, rpn <rnieme...@gmail.com> wrote:
>> Hello and welcome!
>>
>> Here is the cart editor in jsFiddle:http://jsfiddle.net/rniemeyer/A7K8W/
>>
>> Maybe you can reproduce your issue based off of it.
--
-barkmadley
sent from an internet enabled device
http://barkmadley.com