Invalid left-hand side in assignment

There was an invalid assignation to an invoking function 

Y.namespace( "store.basket" ) ;
Y.store.basket = (function () {