[ckan-dev] recline model: is the jquery dep necessary?
James Casbon
james.casbon at okfn.org
Fri Mar 30 14:59:06 UTC 2012
Just had a go at loading the recline model parts. Now I want to load
them in a non browser js environment (think web worker/node.js), but
there seems to be a jquery dependency - which may be unnecessary. If
it is, it would help me to reuse the data code out of the browser if
it was dropped.
For example, the code in http://okfnlabs.org/recline/src/model.js is
wrapped in :
(function($, my) {
... all the code
}(jQuery, this.recline.Model));
Can someone enlighten me as to what this does and whether it needs
jquery to do it?
thanks,
James
More information about the ckan-dev
mailing list