maccman/spine — Issue #169: AMD Modules
Author: idris
Created: 2011-12-29 19:41:41+00:00
State: open

Spine should be defined as a [CommonJS/AMD](http://wiki.commonjs.org/wiki/Modules/AsynchronousDefinition) module. This can be done unobtrusively by adding the following code:

if (typeof define === "function" && define.amd) {
define("less", [], function () { return Spine; } );
}

This standard is being embraced by many libraries, such as jQuery 1.7 (see: http://bugs.jquery.com/ticket/7102)

The other Spine modules (spine.tabs, spine.manager, spine.ajax, etc.) should also be defined as AMD modules.