coffeescript - out of three libraries, require.js is failing to load one; how can I find out why? -


i've got 3 libraries loading require.js:

require(['lib/alpha', "lib/delta", "lib/gamma"], (alpha, delta, gamma) ->   # initialize objects libraries etc.  

they pretty similar:

# names changed ip protection, code may funny  define(->   class alpha     constructor: ({@type, @user, @data}) ->       @time = new date() )  define(->   class delta     constructor: ({@logger, @config, @socket, @util}) ->       #@logger.debug arguments       @room = null       (@util ?= {}).inspect ?= json.stringify        # more functions ... )  define(->   class gamma     alphas = null     constructor: ({@logger, @config, @alphautility, @newid}) ->       throw 'alpha utility not defined' unless @alphautility?      # more functions ... ) 

however, , no reason can discern, delta not loading via require. it's undefined in callback.

relevant details:

  • i haven't touched code in delta in weeks
  • rolling code last week has no effect
  • loading in different order or loading delta has no effect
  • the js file present on server , loads fine when call url directly
  • all files in same folder
  • require throwing no errors
  • there no errors in console

i'm stumped here, how can figure out why require won't load file? i've stepped through code bit it's 2k lines determining it's failing difficult.

require 2.1.8 (current of 9/24/2013)

it's been while , there haven't been answers, i'll write one.

the require.js dev suggested may have been bug in chrome 29. since chrome has bumped v30 , issue has stopped happening, have assume fixed.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -