0

I'm trying to use the javascript compiled file, but I get "b is undefined" since I launch the app with it. I have really no idea where does it come from.

I removed et init again the sources from LimeJS, updated the dept. The problem still..

Any idea?

RodneyRd
  • 130
  • 10
  • Lime JS uses the Closure Compiler, right? Can you enable the --debug option? Are any other scripts loading that might conflict? – John Feb 10 '13 at 06:28
  • Does your app work properly in debug? (i.e. with the non-closure-compiled code?) "X is undefined" errors after compiling with Closure are usually because there's some custom object which Closure is not aware of accessing a member property via "dot notation" instead of "key notation". For example something like: `code` myCustomObj.myCustomProperty `code` instead of: `code` myCustomObj['myCustomProperty'] `code` A better solution (if this is your issue) than using "key notation" is to declare the property as part of a class or provide appropriate externs. – JoeDuncan Feb 19 '13 at 19:04

1 Answers1

0

Did you use goog.exportSymbol() on the methods you want to use when your code is compressed ? If not the compiler changes the function's names to compress them to optimize compression !

S.Galarneau
  • 2,194
  • 1
  • 24
  • 26