Skip to content

Commit

Permalink
fix(loader): plugin api fetch causes problems with safari
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 24, 2015
1 parent 4c592be commit 7788af1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Expand Up @@ -48,7 +48,7 @@ export class DefaultLoader extends Loader {

if(System.polyfilled){
define('view', [], {
load: function (name, req, onload, config) {
'load': function (name, req, onload, config) {
var entry = that.getOrCreateTemplateRegistryEntry(name),
address;

Expand All @@ -67,7 +67,7 @@ export class DefaultLoader extends Loader {
});
}else{
System.set('view', System.newModule({
fetch: function(load, fetch) {
'fetch': function(load, fetch) {
var id = load.name.substring(0, load.name.indexOf('!'));
var entry = load.metadata.templateRegistryEntry = that.getOrCreateTemplateRegistryEntry(id);

Expand All @@ -80,7 +80,7 @@ export class DefaultLoader extends Loader {
return '';
});
},
instantiate:function(load) {
'instantiate':function(load) {
return load.metadata.templateRegistryEntry;
}
}));
Expand Down

0 comments on commit 7788af1

Please sign in to comment.