Skip to content

Commit

Permalink
Use request-es5 has test.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes committed Jan 20, 2012
1 parent 69ab3d7 commit 3d08975
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions default.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
define(['exports', 'require', 'dojo/has', 'dojo/has!host-browser?es5-shim:'], function(exports, require, has){
define([
'exports',
'require',
'./has',
'./has!request-es5?:es5-shim'
], function(exports, require, has){
var defId = has('config-defaultTransport'),
platformId;

Expand All @@ -19,7 +24,7 @@ define(['exports', 'require', 'dojo/has', 'dojo/has!host-browser?es5-shim:'], fu
};

exports.load = function(id, parentRequire, loaded, config){
require([id == "platform" ? platformId : defId], function(transport){
require([id == 'platform' ? platformId : defId], function(transport){
loaded(transport);
});
};
Expand Down
5 changes: 4 additions & 1 deletion util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
define(['exports', 'dojo/has!host-browser?es5-shim:'], function(exports){
define([
'exports',
'./has!request-es5?:es5-shim'
], function(exports){
exports.mix = function mix(target, source){
for(var name in source){
if(target[name] !== source[name]){
Expand Down

0 comments on commit 3d08975

Please sign in to comment.