Skip to content

Commit

Permalink
Use paths config to instead of map config
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Mar 5, 2013
1 parent c1add4c commit 3f23a93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
14 changes: 1 addition & 13 deletions docs/assets/main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
/**
* Main module for seajs.org
* module for seajs.org
*/

seajs.config({

// Redirect jquery.js to alipay CDN
map: [
[/^.*\/jquery\.js.*$/, 'https://a.alipayobjects.com/gallery/jquery/1.8.2/jquery.js']
]

})

define(function(require) {

var navs = document.getElementById('nav').getElementsByTagName('a')
Expand All @@ -33,14 +23,12 @@ define(function(require) {
}
}


bindEvents()
updateView()
misc()


// Helpers
// -------

function updateView(pageId) {
pageId || (pageId = location.hash.substring(1))
Expand Down
5 changes: 4 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,10 @@ <h3>岁月如歌</h3>
<a href="https://github.com/seajs/seajs" target="_blank"><img style="position: absolute; top: -7px; right: 0; border: 0" src="https://i.alipayobjects.com/e/201211/1dbSqT9ykm.png" width="149" height="149" alt="Fork me on GitHub"></a>
</div>

<script src="../dist/sea.js" data-main="./assets/main"></script>
<script src="../dist/sea.js"
data-config="./assets/config.js?t=20130305"
data-main="./assets/main.js?t=20130305"></script>

<script>
var _gaq = _gaq || []
_gaq.push(['_setAccount', 'UA-53409-11'])
Expand Down

0 comments on commit 3f23a93

Please sign in to comment.