Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug for multi load a same non-module file. fix #247
- Loading branch information
1 parent
cb39d43
commit 3ad2e9c
Showing
10 changed files
with
149 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
define('seajs/plugin-reload', ['socketio'], function(require) { | ||
var io = require('socketio') | ||
|
||
// decide the server port | ||
var socket = io.connect('http://localhost:8964') | ||
socket.on('reload', function(data) { | ||
// TODO refresh the give path | ||
location.reload() | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
html { background: #F4F4F4 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
define({}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
define(function(require) { | ||
|
||
var test = require('../../test') | ||
|
||
require.async('./a.css') | ||
require.async('./a.css') | ||
require.async('./a.css') | ||
require.async('./a.css') | ||
require.async('./a.css') | ||
require.async('./a.css') | ||
|
||
require.async('./a.js') | ||
require.async('./a.js') | ||
require.async('./a.js') | ||
require.async('./a.js') | ||
require.async('./a.js') | ||
require.async('./a.js') | ||
|
||
test.assert(true, 'Multi use of css files is ok') | ||
test.done() | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> | ||
<title>Issue Test</title> | ||
</head> | ||
|
||
<body> | ||
<p><a href="https://github.com/seajs/seajs/issues/100">#100</a></p> | ||
<div id="out"></div> | ||
|
||
<script src="../../../dist/sea-debug.js"></script> | ||
<script> | ||
|
||
seajs.use('./main') | ||
|
||
|
||
function printResults(txt, style) { | ||
var d = document.createElement('div'); | ||
d.innerHTML = txt; | ||
d.className = style; | ||
document.getElementById('out').appendChild(d); | ||
} | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters