JavaScript Namespacing a Backbone app using require js

I'm trying to create a namespace for my backbone app so I can make calls globally.

Normally, I'd just do it like this:

var myNamespace = window.myNamespace || {};
myNamespace.SomeView = Backbone.View.extend(..);

Not sure how to achieve this using require js

Answer:1

I am using this script to have a popup box with some setting in my site: http://codeissue.com/articles/a04daf3210c8b0a/cross-browser-modal-popup-using-javascript-jquery The popup opens when click a ...

I am using this script to have a popup box with some setting in my site: http://codeissue.com/articles/a04daf3210c8b0a/cross-browser-modal-popup-using-javascript-jquery The popup opens when click a ...

I have a very simple use case. I have an xhr object of ids of facebook users. Now I just want to display the images of the users in the following way. xhr.objects.forEach(function (user) { $('#...

I have a very simple use case. I have an xhr object of ids of facebook users. Now I just want to display the images of the users in the following way. xhr.objects.forEach(function (user) { $('#...

I am calling ipinfodb via JS. Recently I have had around 5-6 responses (from around 600) that specify the countryCode as 'RD'. 'RD' isn't a ccTLD and I cannot find any reason for this to be returned....

I am calling ipinfodb via JS. Recently I have had around 5-6 responses (from around 600) that specify the countryCode as 'RD'. 'RD' isn't a ccTLD and I cannot find any reason for this to be returned....

How to export a PDF document into a series of individual images(jpeg, png or bmp format) using javascript or jquery?

How to export a PDF document into a series of individual images(jpeg, png or bmp format) using javascript or jquery?

  1. convert pages into images
  2. converting pdf pages to images