xuijs / xui

A tiny javascript framework for mobile web apps.
http://xuijs.com
789 stars 106 forks source link

Support for Google Closure Compiler in Advanced mode? #76

Closed alexblack closed 10 years ago

alexblack commented 12 years ago

I seem to be having trouble using xui.js with google clojure compiler.

I created a single javascript file containing http://xuijs.com/downloads/xui-2.3.2.js and this snippet:

x$.ready(function() {
  x$('#header').html('It worked!');
});

I ran it through the google closure compiler, to get this output: http://pastebin.com/raw.php?i=56GyMHcn

I get an exception when I reference this script:

Uncaught TypeError: Cannot call method 'U' of undefined
f.g.f.natest.js:5
f.g.f.Htest.js:5
ftest.js:3
(anonymous function)test.js:9
(anonymous function)

notes: