I cannot find in the documentation any "official" way to steal (stealjs) canJS without loading jquery. The problem is that I'm working with Yii Framework (PHP) and some components need jquery before even i include myapp.js modules, that is i must include jquery before everything. Now when i include myapp.js it also steals canJS that in turn will load jquery again breaking my application (2 instance of jquery running). How can i steal canJS without jquery?
Asked
Active
Viewed 454 times
1
-
1http://canjs.us/release/1.1.5/can.yui.js – Adil Shaikh Apr 30 '13 at 09:31
-
I dont want to load yui, i want to loading canJS without the "library" because it shoudl be already loaded. – th3n3rd Apr 30 '13 at 09:46
1 Answers
1
This probably isn't an ideal solution, but you can create an empty dummy.js file and map jquery's path to that in stealconfig.js:
steal.config({
...
paths: {
"jquery": "dummy.js"
}
...
})

Justin Meyer
- 1,677
- 13
- 15
-
mhm....honestly I thought about it too, but yes isn't an ideal solution, but it works like a charm XD. – th3n3rd Apr 30 '13 at 17:13