Permalink
Browse files

readme update

  • Loading branch information...
1 parent 0620763 commit 919d99d6e619114abcaa58d9a646eec8fe52ea70 @jasonmcaffee committed Dec 12, 2011
Showing with 9 additions and 6 deletions.
  1. +4 −1 README.md
  2. +5 −5 index.html
View
@@ -24,7 +24,7 @@ define([
});
```
-### Demo : Load 2 Versions of Jquery
+### Load 2 Versions of Jquery
Now we can load the 2 versions of jquery
``` javascript
@@ -38,4 +38,7 @@ Now we can load the 2 versions of jquery
});
```
+### Demo
+Demo of this code running can be found here : [RequireJS & Multiple Versions of Jquery Demo](http://jasonmcaffee.com/requireMultipleVersionsOfJquery/index.html)
+
# [Jason McAffee](http://codeceratops.jasonmcaffee.com)
View
@@ -24,11 +24,11 @@ <h1>Requirejs with multiple versions of jquery demo</h1>
<div>
//demonstrate loading 2 versions of jquery into a module <br/>
require([ <br/>
- 'libs/jquery/jquery1.7.1.module', //we can use this shortcut now that it was established in main.js <br/>
- 'libs/jquery/jquery1.6.3.module' <br/>
- ], <br/>
+ &nbsp;'libs/jquery/jquery1.7.1.module', <br/>
+ &nbsp;'libs/jquery/jquery1.6.3.module' <br/>
+ &nbsp;], <br/>
function($171, $163){<br/>
- alert('I have jquery version : ' + $171.fn.jquery + ' and jquery version : ' + $163.fn.jquery + ' successfully loaded.'); <br/>
+ &nbsp;&nbsp;alert('I have jquery version : ' + $171.fn.jquery + ' and jquery version : ' + $163.fn.jquery + ' successfully loaded.'); <br/>
});<br/>
</div>
</article>
@@ -41,7 +41,7 @@ <h1>Requirejs with multiple versions of jquery demo</h1>
//demonstrate loading 2 versions of jquery into a module
require([
- 'libs/jquery/jquery1.7.1.module', //can't use the shortcut defined in main.js for some reason. have to use full path...
+ 'libs/jquery/jquery1.7.1.module',
'libs/jquery/jquery1.6.3.module'
],
function($171, $163){

0 comments on commit 919d99d

Please sign in to comment.