javascript - ReferenceError: ProductStore is not defined -


i'm trying migrate old javascript / backbone code on our new system , i'm running following error.

referenceerror: productstore not defined  productstore.options = {},  referenceerror: productstore not defined  productstore.type= "board"; 

my js file looks this.

productstore.options= {},     function() {         "use strict", productstore.options.product = backbone.model.extend({               //do          })     }(),     function() {         "use strict", productstore.options.productview = backbone.view.extend({              //do         })     }() 

there no other js files, i'm wondering i'm doing wrong?

error says all, can't say:

productstore.options = {}

unless have declared productstore (and defined object).

e.g.

var productstore = {}; 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -