Skip to content

Commit

Permalink
fix(examples): Modifies web worker examples to be compatible with sys…
Browse files Browse the repository at this point in the history
…temjs 0.18.10.

Adds the rx path to each respective web worker loader.

Closes #3630
  • Loading branch information
ttowncompiled committed Aug 18, 2015
1 parent 53df0d8 commit 675cb87
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion modules/examples/src/message_broker/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ window = {
assert = function(){};


System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/message_broker/rx.js'
}
});

System.import("examples/src/message_broker/background_index").then(function(m){
console.log("running main");
Expand Down
8 changes: 7 additions & 1 deletion modules/examples/src/web_workers/images/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ assert = function() {};
importScripts("b64.js");


System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/images/rx.js'
}
});

System.import("examples/src/web_workers/images/background_index")
.then(
Expand Down
8 changes: 7 additions & 1 deletion modules/examples/src/web_workers/kitchen_sink/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ window = {
assert = function() {};


System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/kitchen_sink/rx.js'
}
});

System.import("examples/src/web_workers/kitchen_sink/background_index")
.then(
Expand Down
8 changes: 7 additions & 1 deletion modules/examples/src/web_workers/todo/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ window = {
assert = function() {};


System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/todo/rx.js'
}
});

System.import("examples/src/web_workers/todo/background_index")
.then(
Expand Down

0 comments on commit 675cb87

Please sign in to comment.