Skip to content

Commit

Permalink
fix unguarded reference to globals. refs #14033. !strict
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@26755 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
neonstalwart committed Sep 30, 2011
1 parent 2c383ec commit 9efd5e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dnd/Source.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dojo.dnd.__SourceArgs = function(){
=====*/

// For back-compat, remove in 2.0.
if(dojo && dojo.ready && !dojo.isAsync){
if(!dojo.isAsync){
dojo.ready(0, function(){
var requires = ["dojo/dnd/AutoSource", "dojo/dnd/Target"];
require(requires); // use indirection so modules not rolled into a build
Expand Down
9 changes: 5 additions & 4 deletions fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ define([
"./dom",
"./dom-style",
"./dom-geometry",
"./ready",
"require" // for context sensitive loading of Toggler
], function(lang, Evented, dojo, arrayUtil, connect, baseFx, dom, domStyle, geom, require) {
], function(lang, Evented, dojo, arrayUtil, connect, baseFx, dom, domStyle, geom, ready, require) {

// module:
// dojo/fx
Expand All @@ -25,11 +26,11 @@ define([
=====*/

// For back-compat, remove in 2.0.
if(dojo && dojo.ready && !dojo.isAsync){
dojo.ready(0, function(){
if(!dojo.isAsync){
ready(0, function(){
var requires = ["./fx/Toggler"];
require(requires); // use indirection so modules not rolled into a build
})
});
}

var coreFx = {};
Expand Down

0 comments on commit 9efd5e2

Please sign in to comment.