jbmusso / grex

JavaScript graph database client for TinkerPop2 Rexster
MIT License
46 stars 12 forks source link

RequireJS Example #16

Closed OrangeCrush closed 11 years ago

OrangeCrush commented 11 years ago

Thanks for the lib!!

I've been playing around with gRex in the browser and was hoping to integrate it with a backbone application that I am developing. You said that it could be loaded as a RequireJS module and I'm having some problems setting it up. Do you have any example of how you had that set up? I'm specifically looking for anything like a shim / config or anything that can lay out the dependencies that could be used. Once I figure it out I will put in a pull-request if you do not have anything .

Thanks!

fattenap commented 11 years ago

Hi @OrangeCrush

Yes sorry about that. I actually dropped RequireJS support and didn't update the docs. But I think it needs to be supported. So I have created a new build under the 0.3.0 branch. You should be able to require it with

require(['gRex'], function (gRex) { // Do something with gRex });

Once you've given it a go (and it works), I'll release it.

Let me know how you go.

Thanks Frank

OrangeCrush commented 11 years ago

Awesome. Totally working now. Thanks!

fattenap commented 11 years ago

No Problem. Thanks for testing.

I'll merge with master and release now.