Monday, 19 August 2013

Using Q library in browser

Using Q library in browser

I prepare some webapp. I need to use Q library
(http://documentup.com/kriskowal/q/) in browser. I would like to use
RequireJs to load this library in browser, but i dont have any idea how
can I do this. I know how to load my own module, but I can`t do it with Q
library. Q have some function:
(function (definition) {
//some another code here***
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(definition);
Can you help me with it? How can i load Q library and then use it into
another module?

No comments:

Post a Comment