Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.20.0 CommonJs problem #18

Open
romero83 opened this issue Mar 29, 2017 · 0 comments
Open

Version 0.20.0 CommonJs problem #18

romero83 opened this issue Mar 29, 2017 · 0 comments

Comments

@romero83
Copy link

Hi,

I just upgraded from version 0.18.0 to 0.20.0 and my application broke.
Error message: .resizable is not a function
I use CommonJs for internal module import. I imported jQuery without CommonJs from outside:

index.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Test page</title>
</head>
<body>
  <div id="panel">
    <div id="list"></div>
    <div class="win-size-grip"><i class="fa fa-signal"></i></div>
  </div>

<script>
  <script src="resources/jquery/jquery.js"></script>
  <script src="index.js"></script>
</script>
</body>
</html>

index.js:

(function($) {
 'use strict';

  global.jQuery = $;

  require('myApplication/testEvent');
})(window.$);

testEvent.js

(function($) {
 'use strict';

require('jquery-resizable-dom');

$('#panel').resizable({
            handleSelector: ".win-size-grip",
            onDrag: function(e, $el, newWidth, newHeight) {
                $("#list").height(newHeight - 140).width(newWidth / 2 - 30);
            }
        });

})(window.$);

What is the problem? Did I miss something?
When I using version 0.18.0 it is working fine.

Thank you,
Best regards,
Rómeó Nagy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant