AlexAltea / unicorn.js

Unicorn CPU emulator framework port for JavaScript
https://alexaltea.github.io/unicorn.js/
GNU General Public License v2.0
566 stars 36 forks source link

Got matchExpr[type].exec is not a function when using with jQuery #4

Closed RossComputerGuy closed 7 years ago

RossComputerGuy commented 7 years ago

Hey can this be fixed so I can use this with jQuery.

AlexAltea commented 7 years ago

@SpaceboyRoss01 The demos use Unicorn.js alongside jQuery 3.1.1 without any problems. Can you describe me your setup or provide an example where the error is replicated?

RossComputerGuy commented 7 years ago

I am using foundation (a ui framework) with jquery 3.1.1 in a chrome app

AlexAltea commented 7 years ago

@SpaceboyRoss01 The bug was fixed previously, but I forgot to upload the release builds. You can find the fixed version here: https://github.com/AlexAltea/unicorn.js/releases/tag/v1.0-rc3

Try it and let me know if it works.

RossComputerGuy commented 7 years ago

Takes forever to load sometimes, uses lots of memory. It crashes a lot from memory usage. Besides that, it works.

AlexAltea commented 7 years ago

Takes forever to load sometimes

Depends on your connection. Make sure you are not linking to the Github releases (it's not meant to be a CDN). Also, if you only target one architecture make sure you are loading only unicorn-...arch....min.js rather than the huge unicorn.min.js file.

uses lots of memory

That's normal.

It crashes a lot from memory usage.

That's not normal if your machine is relatively recent. File another issue if that's the case.

Besides that, it works.

Good. I'm closing this.

RossComputerGuy commented 7 years ago

my computer is from this year, and the file is local