Skip to content

Commit

Permalink
Merge branch 'release/4.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Lüth authored and Dirk Lüth committed Feb 23, 2017
2 parents b16c05a + 9651066 commit e16da44
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 80 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"globals": {
"demand": true,
"provide": true
}
},
"root": true
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qoopido.demand",
"version": "4.1.9",
"version": "4.2.0",
"homepage": "https://github.com/dlueth/qoopido.demand",
"authors": [
"Dirk Lueth <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

target.parentNode.insertBefore(script, target);
}(window, document, 'script'))
}('../dist/demand.js', 'app/js/main', { base: './', version: '4.1.9', cache: false }));
}('../dist/demand.js', 'app/js/main', { base: './', version: '4.2.0', cache: false }));
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion dist/cache/dispose.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/demand.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/demand.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/handler/css.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/json.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/legacy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/text.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin/cookie.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin/lzstring.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin/sri.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "qoopido.demand",
"title": "Qoopido.demand",
"description": "Promise like module loader using XHR requests and localStorage caching to dynamically load JavaScript and CSS + dynamic dependency resolution + support for custom handlers",
"version": "4.1.9",
"version": "4.2.0",
"homepage": "https://github.com/dlueth/qoopido.demand",
"author": {
"name": "Dirk Lueth",
Expand Down
10 changes: 5 additions & 5 deletions src/function/demand.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ global.demand = (function() {
.after(EVENT_CACHE_MISS, function(dependency) {
new ClassLoader(dependency);
})
.after(EVENT_POST_REQUEST, function(dependency) {
var pointer = dependency.handler.onPostRequest;

pointer && pointer(dependency);
})
.after(EVENT_CACHE_HIT + ' ' + EVENT_POST_REQUEST, function(dependency) {
singletonEvent.emit(EVENT_PRE_PROCESS, dependency.id, dependency);
})
Expand All @@ -132,11 +137,6 @@ global.demand = (function() {

pointer && pointer(dependency);
})
.after(EVENT_POST_REQUEST, function(dependency) {
var pointer = dependency.handler.onPostRequest;

pointer && pointer(dependency);
})
.after(EVENT_PRE_PROCESS, function(dependency) {
var pointer = dependency.handler.onPreProcess;

Expand Down
Loading

0 comments on commit e16da44

Please sign in to comment.