Questions tagged [wirejs]

9 questions
4
votes
0 answers

wirejs and dojo using the dojo build system (2)

(This is the same question as wirejs and dojo using the dojo build system, but with more detail about the problem and tried solutions. The duplicate question is created because this was suggested in a comment). When building a dojo application that…
Jan Dockx
  • 111
  • 2
  • 7
4
votes
1 answer

wirejs - New component instance for each depended component

First: i'm new wirejs and its very possible i've missed something on the docs On regular component declaration, like: 'Bnaya/App/TrackingService': { create: { module: 'Bnaya/App/TrackingService', args: [] } } All of the…
Bnaya
  • 765
  • 6
  • 15
4
votes
2 answers

Running a RequireJS/WireJS app using PhantomJS

I'm trying to execute a basic app that uses RequireJS (2.1.8), WireJS (0.10.2) and PhantomJS (1.9.2): When running the app using PhantomJS (this is my goal), WireJS fails to load (see error below). When running the app using Chrome, it completes…
Younes
  • 1,635
  • 1
  • 19
  • 33
3
votes
1 answer

Example of wire.js in node.js

I'm new to Node and coming from a C# background one of the main things that I'm looking to figure out with Node is dependency injection. I understand that wire.js has that capability and I've read everything I can find on it and I've even…
MIM
  • 33
  • 1
  • 4
1
vote
2 answers

Preload polyfill libraries using requirejs

I am creating a wirejs app using requirejs. For IE 8 I am using polyfills: cujo/poly js library and require this lib be preloaded before wirejs is loaded. If I used curl as the AMD loader, as per the documentation, I have following option…
Vikram
  • 4,162
  • 8
  • 43
  • 65
1
vote
1 answer

Using wirejs with jQuery plugins

I have a jQuery plugin, say 'myPlugin' that I use as follow: If my DOM contains:
Nothing special here
I will call my plugin on the div: $('#some-element').myPlugin(); It will make the plugin do its things which will…
Boo
  • 707
  • 5
  • 6
1
vote
2 answers

Cannot understand why wire.js is failing to create object

Here is the setup of my website: Index.html