Getting Uncaught Reference error: Backbone is not defined when i compile with r.js optimizer using grunt. But when i change the anonymous function to a AMD function i.e.,
define(['backbone'], function(Backbone) { \\Contents of function }); the code is working properly.
Getting
Uncaught Reference error: Backbone is not defined
when i compile withr.js
optimizer using grunt. But when i change the anonymous function to a AMD function i.e.,define(['backbone'], function(Backbone) { \\Contents of function }); the code is working properly.