Jump to content
Search Community

tolborg

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by tolborg

  1. I found the error:

     

    The error went away when I changed the TweenMax.js to the minified version (TweenMax.min.js).

    It seems that IE8 is having an issue with the "//@private" comments. I tried deleting the comment on line 2295, but then IE8 just complained about the comment on line 2390 instead. The minified version has no comment = no errors.

     

    Anyways, stuff is working now :)

    • Like 1
  2. Im doing it like this:

    require.config({
    
      baseUrl: '/ui/js',
    
      paths: {
        jquery:    'modules/libs/jquery-1.10.2',
        tweenmax:  'modules/vendor/greensock-js/TweenMax'
      },
    
      shim: {
        jquery: {
          exports: 'jQuery'
        },
        tweenmax: {
          exports: 'TweenMax'
        }
    });
    
    define([
      'jquery',
      'tweenmax'
    ], function($, TweenMax) {
    
      console.log(TweenMax);
    
    });
    
    
    • Like 1
×
×
  • Create New...