Skip to content

LTTPP/jquery-amd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-amd

An AMD adaptable jQuery, which address the problem that AMD do not have a inherent window with a document. A creation of a mockup of window with a document is needed and handled.

Installation

Node.js

npm install jquery-amd

AMD

Follow the instruction of the environments you are using.

How to use

Node.js

var jq = require('jquery-amd');
var window = ... // use some window and dom mockup tool, like NDjs, jsdom etc.
var $ = jq(window);

AMD

define(['jquery'], function(jq){
    ...
    var window = ...; // use some window and dom mockup tool, like NDjs, jsdom etc.
    var $ = jq(window);
    ...
});

Authors and Contributors

  • Jianwei Liu

License

jquery-amd is released under the MIT license.