Reputation: 9426
I'm trying to use Twitter Bootstrap's modal dialog jQuery plugin with ClojureScript, which works fine without advanced optimizations, but when Google Closure munges method names, the on
method becomes za
.
I've been trying to protect on
from being munged by using an externs file, but so far no luck creating a definition that fixes this. Tips?
Upvotes: 0
Views: 407
Reputation: 9426
What finally worked was:
var jQuery;
jQuery.fn = {
on: function() {}
};
Upvotes: 1
Reputation: 646
with advanced you can either use goog.exportSymbol or window['object']['on'] = object['on']
Upvotes: 0