Skip to content

Commit

Permalink
Add callback order test pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Apr 2, 2013
1 parent ba0d865 commit c4a0668
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lab/2013/callback-order/kissy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<script src="http://a.tbcdn.cn/s/kissy/1.3.0/seed-min.js"></script>
<script>

KISSY.add('a', function() {})

KISSY.use('a', function(a) {
console.log(1)
})

console.log(2)

</script>
</body>
</html>
21 changes: 21 additions & 0 deletions lab/2013/callback-order/requirejs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<script src="http://requirejs.org/docs/release/2.1.5/minified/require.js"></script>
<script>

define('a', [], function() {})

require(['a'], function(a) {
console.log(1)
})

console.log(2)

</script>
</body>
</html>
21 changes: 21 additions & 0 deletions lab/2013/callback-order/seajs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<script src="http://seajs.org/dist/sea.js"></script>
<script>

define('a', [], function() {})

seajs.use(['a'], function(a) {
console.log(1)
})

console.log(2)

</script>
</body>
</html>
23 changes: 23 additions & 0 deletions lab/2013/callback-order/yui.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<script src="http://yui.yahooapis.com/3.9.1/build/yui/yui-min.js"></script>
<script>

YUI.add('a', function (Y) {
Y.a = 'a'
})

YUI().use('a', function(Y) {
console.log(1)
})

console.log(2)

</script>
</body>
</html>

0 comments on commit c4a0668

Please sign in to comment.