Skip to content Skip to sidebar Skip to footer
Showing posts with the label Requirejs

Angular-jasmine, Loading Json

I am trying to load json from local folder and then feed it into function to test it. Here is what … Read more Angular-jasmine, Loading Json

Module Definition To Work With Node.js, Require.js And With Plain Scripttags Too

I am working on a javascript module/library that should work in 3 environments: in node.js in requ… Read more Module Definition To Work With Node.js, Require.js And With Plain Scripttags Too

Require Js Ruins Code Navigation

require.js states the way of defining objects inside modules with define([requiremens], object) as … Read more Require Js Ruins Code Navigation

Are There Any Problems With Nesting App-specific Backbone.js Assets Under Common Ones?

I am working on structuring a large application that has several, discrete client-side applications… Read more Are There Any Problems With Nesting App-specific Backbone.js Assets Under Common Ones?

Uglify One Js File Using Requirejs Optimizer

I'd like to know if there is a way to uglify only one file in command line using r.js (RequireJ… Read more Uglify One Js File Using Requirejs Optimizer

Load External Scripts With Requirejs Without Access To Config

I'm trying to load the datatables javascript library in a plugin that I'm writing. The issu… Read more Load External Scripts With Requirejs Without Access To Config

Requirejs Dependency Not Working

I am trying to use angular-ladda directive in my app. Here is my main.js which is the requirejs man… Read more Requirejs Dependency Not Working

Module Pattern- How To Split The Code For One Module Into Different Js Files?

For the module pattern, I'm doing something like: (function(namespace) { // tons of code … Read more Module Pattern- How To Split The Code For One Module Into Different Js Files?

Calling Methods In Requirejs Modules From Html Elements Such As Onclick Handlers

I'm changing a project from an 'old' browser-style module structure to a 'new' … Read more Calling Methods In Requirejs Modules From Html Elements Such As Onclick Handlers

Difference Between "q" And "q" In Angularjs And Requirejs

I am creating a single page app built on AngularJS, Breeze, and RequireJS. In setting up AMD with r… Read more Difference Between "q" And "q" In Angularjs And Requirejs

Cannot Read Property 'view' Of Undefined

This is my first time to use require.js with backbone, and I'm struggling to find the problem w… Read more Cannot Read Property 'view' Of Undefined

Resolving Modules Using Require.js And Java/rhino

I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino. I'm … Read more Resolving Modules Using Require.js And Java/rhino

Loading Angular From Cdn Via Requirejs Is Not Injected

In my project I want to use RequireJS and bootstrap my app as follows: requirejs.config({ baseUrl: … Read more Loading Angular From Cdn Via Requirejs Is Not Injected

Error Loading Jquery-ui In Require.js Config For Fancytree Plugin

I'm trying to load a jQuery control called fancytree and this control depends on jquery-ui. I&#… Read more Error Loading Jquery-ui In Require.js Config For Fancytree Plugin

How To Document A Require.js (amd) Modul With Jsdoc 3 Or Jsdoc?

I have 2 types of Modules: Require.js Main File: require.config({ baseUrl: '/another/… Read more How To Document A Require.js (amd) Modul With Jsdoc 3 Or Jsdoc?

How To Send Additional Javascript Code To Client From Nodejs Server After Page Load

When a popup shows up on my website, I want the div in that popup rendered one of many different wa… Read more How To Send Additional Javascript Code To Client From Nodejs Server After Page Load

Circular Dependencies For A Web App Using Backbone.marionette And Requirejs

I am in the following situation. I am using requireJs to loads module and I don't want to use g… Read more Circular Dependencies For A Web App Using Backbone.marionette And Requirejs

Require.js Alternative Way To Require?

New to require.js. I have this: define([ 'jquery', 'underscore', 'b… Read more Require.js Alternative Way To Require?

Datatables+requirejs: Cannot Read Property 'defaults' Of Undefined

I have downloaded the full package of DataTables with all its module, since it can't be accesse… Read more Datatables+requirejs: Cannot Read Property 'defaults' Of Undefined

Requirejs Worked For One Plug-in, But Not Another

I previously asked this question, and got one plug-in to work. Now, I'm trying to get another p… Read more Requirejs Worked For One Plug-in, But Not Another