gdsmith / jquery.easing

jQuery Easing Plugin
http://gsgd.co.uk/sandbox/jquery/easing
Other
922 stars 422 forks source link

Creating this plugin to be AMD compliant? #9

Closed nmatthew123 closed 8 years ago

nmatthew123 commented 9 years ago

This is more of a comment/query. I am trying to include this plugin using requirejs and I am having a lot of issues with this loading. I have tried to shim it but with no luck. Will this plugin be rewritten to be AMD compliant?

julkue commented 9 years ago

+1

ryantan commented 9 years ago

This worked for me

requirejs.config({
  paths: {
    "jquery": "../bower_components/jquery/dist/jquery.min",
    "jScrollPane": "../bower_components/jScrollPane/script/jquery.jscrollpane",
    "jquery.mousewheel": "../bower_components/jScrollPane/script/jquery.mousewheel",
    "jquery.easing": "../bower_components/jquery.easing/js/jquery.easing",
    "mwheelIntent": "../bower_components/jScrollPane/script/mwheelIntent"
  },
  shim: {
    "jScrollPane": ["jquery", "jquery.mousewheel", "mwheelIntent", "jquery.easing"],
    "jquery": {exports: "jQuery"},
    "jquery.mousewheel": ["jquery"],
    "jquery.easing": ["jquery"],
    "mwheelIntent": ["jquery"]
  }
});
gdsmith commented 8 years ago

Should be fixed now