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

croppa.js not functioning? #55

Closed
brack11 opened this issue Jul 20, 2014 · 4 comments
Closed

croppa.js not functioning? #55

brack11 opened this issue Jul 20, 2014 · 4 comments

Comments

@brack11
Copy link

brack11 commented Jul 20, 2014

I try to use croppa.url('image/path.jpg',599) withing jquery, but keep getting Uncaught ReferenceError: croppa is not defined croppa.js file is included but still no work

@weotch
Copy link
Member

weotch commented Jul 29, 2014

Are you using an AMD style loader like Require.js?

@weotch
Copy link
Member

weotch commented Jul 29, 2014

Pull from master and tell me if this fixes your issue. If you are loading it via a script tag, you should be able to refer to croppa.url globally now.

@brack11
Copy link
Author

brack11 commented Jul 30, 2014

  1. No, I dont use loader, at least I dont know about it
  2. can you explain more "Pull from master"?

@weotch
Copy link
Member

weotch commented Jul 30, 2014

  1. Ok, then I think that commit should fix your issue
  2. Replace your croppa.js with this version: https://raw.githubusercontent.com/BKWLD/croppa/master/public/js/croppa.js. As long as you put it's script tag before your other code, you should be to refer it by like croppa.url(...)

@weotch weotch closed this as completed Jul 30, 2014
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

2 participants