I'm having fun getting Draggable and TweenMax working with RequireJS (as part of a Durandal project).
I think there might be a bug in Draggable, it looks to me like it is missing a dependency definition for CSSPlugin. The define for it looks like this:
_gsScope._gsDefine("utils.Draggable", ["events.EventDispatcher","TweenLite"], function(EventDispatcher, TweenLite) {
On line 1757 CSSPlugin gets referenced as a global object:
setRatio:(_isOldIE ? function() { TweenLite.set(target, tempVars); } : CSSPlugin._internals.setTransformRatio || CSSPlugin._internals.set3DTransformRatio)
This line fails with an exception when I am loading Draggable via RequireJS. I have fixed it by changing the define call to:
_gsScope._gsDefine("utils.Draggable", ["events.EventDispatcher","TweenLite", "plugins.CSSPlugin"], function(EventDispatcher, TweenLite, CSSPlugin) {
Does this look like a valid fix or am I missing some other reason why this call to CSSPlugin as a global object should be like it is ?