Skip to content

Commit

Permalink
Fix module return values for various dojox modules, refs #13101 !strict.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dojotoolkit.org/src/dojox/trunk@31211 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
wkeese committed Apr 11, 2013
1 parent de6e10e commit 39781e9
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 24 deletions.
4 changes: 2 additions & 2 deletions av/FLVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ define(['dojo', 'dijit', 'dijit/_Widget', 'dojox/embed/Flash', 'dojox/av/_Media'
function(dojo, dijit, _Widget, Flash, _Media){

dojo.experimental("dojox.av.FLVideo");
dojo.declare("dojox.av.FLVideo", [_Widget, _Media], {

return dojo.declare("dojox.av.FLVideo", [_Widget, _Media], {

// summary:
// Inserts a Flash FLV video into the HTML page and provides methods
Expand Down Expand Up @@ -318,5 +319,4 @@ dojo.declare("dojox.av.FLVideo", [_Widget, _Media], {
}
});

return dojox.av.FLVideo;
});
7 changes: 4 additions & 3 deletions fx/Shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ define(["dojo/_base/kernel", "dojo/_base/query" ,"dojo/_base/lang", "dojo/_base/
"dojo/dom-construct", "dojo/dom-class", "dojo/dom-geometry", "dojo/_base/fx", "dojo/fx", "dijit/_Widget",
"dojo/NodeList-fx"],
function(kernel, query, lang, declare, has, domConstruct, domClass, domGeom, baseFx, coreFx, Widget, NodeListFx){
kernel.experimental("dojox.fx.Shadow");
declare("dojox.fx.Shadow", Widget,{

kernel.experimental("dojox.fx.Shadow");

return declare("dojox.fx.Shadow", Widget,{
// summary:
// Adds a drop-shadow to a node.
// example:
Expand Down Expand Up @@ -149,5 +151,4 @@ declare("dojox.fx.Shadow", Widget,{
}
}
});
return dojox.fx.Shadow;
});
4 changes: 1 addition & 3 deletions image/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function(dojo, dijit, dojox, _Widget, _TemplatedMixin){
dojo.experimental("dojox.image.Badge");
dojo.getObject("image", true, dojox);

dojo.declare("dojox.image.Badge", [_Widget, _TemplatedMixin], {
return dojo.declare("dojox.image.Badge", [_Widget, _TemplatedMixin], {
// summary:
// A simple grid of Images that loops through thumbnails

Expand Down Expand Up @@ -230,7 +230,5 @@ function(dojo, dijit, dojox, _Widget, _TemplatedMixin){
}

});

return dojox.image.Badge;
});

8 changes: 3 additions & 5 deletions image/Lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ define(["dojo", "dijit", "dojox", "dojo/text!./resources/Lightbox.html", "dijit/
dojo.experimental("dojox.image.Lightbox");
dojo.getObject("image", true, dojox);

dojo.declare("dojox.image.Lightbox", dijit._Widget, {
var Lightbox = dojo.declare("dojox.image.Lightbox", dijit._Widget, {
// summary:
// A dojo-based Lightbox implementation.
// description:
Expand Down Expand Up @@ -130,7 +130,7 @@ define(["dojo", "dijit", "dojox", "dojo/text!./resources/Lightbox.html", "dijit/

});

dojo.declare("dojox.image.LightboxDialog",
Lightbox.LightboxDialog = dojo.declare("dojox.image.LightboxDialog",
dijit.Dialog, {
// summary:
// The "dialog" shared between any Lightbox instances on the page, publically available
Expand Down Expand Up @@ -620,9 +620,7 @@ define(["dojo", "dijit", "dojox", "dojo/text!./resources/Lightbox.html", "dijit/
}
}
});


return dojox.image.Lightbox;

return Lightbox;
});

2 changes: 1 addition & 1 deletion string/BidiComplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,5 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array", "dojo/_base/
}
return segmentsPointers;
};
return dojox.string.BidiComplex;
return bdc;
});
4 changes: 2 additions & 2 deletions string/BidiEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define(["dojo/_base/lang", "dojo/_base/declare"],
function(lang,declare){
lang.getObject("string", true, dojox);

declare("dojox.string.BidiEngine", null, {
var BidiEngine = declare("dojox.string.BidiEngine", null, {
// summary:
// This class provides a bidi transformation engine, i.e.
// functions for reordering and shaping bidi text.
Expand Down Expand Up @@ -1533,5 +1533,5 @@ delete LRO;
delete RLO;
delete BN;

return dojox.string.BidiEngine;
return BidiEngine;
});
4 changes: 2 additions & 2 deletions string/Builder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define(["dojo/_base/lang"],
function(lang){
lang.getObject("string", true, dojox).Builder =
var Builder = lang.getObject("string", true, dojox).Builder =
function(/*String?*/str){
// summary:
// A fast buffer for creating large strings.
Expand Down Expand Up @@ -130,5 +130,5 @@ define(["dojo/_base/lang"],
// initialize the buffer.
if(str){ this.append(str); }
};
return dojox.string.Builder;
return Builder;
});
3 changes: 1 addition & 2 deletions testing/DocTest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define("dojox/testing/DocTest", ["dojo/string"], function() {

dojo.declare(
return dojo.declare(
"dojox.testing.DocTest",
null,
{
Expand Down Expand Up @@ -278,5 +278,4 @@ dojo.declare(
}
);

return dojox.testing.DocTest;
});
4 changes: 2 additions & 2 deletions timing/Sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ define([
"./_base"
], function(dojo){
dojo.experimental("dojox.timing.Sequence");
dojo.declare("dojox.timing.Sequence", null, {

return dojo.declare("dojox.timing.Sequence", null, {
// summary:
// This class provides functionality to really sequentialize
// function calls. You need to provide a list of functions and
Expand Down Expand Up @@ -152,5 +153,4 @@ define([
}

});
return dojox.timing.Sequence;
});
4 changes: 2 additions & 2 deletions timing/Streamer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define(["./_base"], function(){
dojo.experimental("dojox.timing.Streamer");
dojox.timing.Streamer = function(

return dojox.timing.Streamer = function(
/* function */input,
/* function */output,
/* int */interval,
Expand Down Expand Up @@ -90,5 +91,4 @@ define(["./_base"], function(){
queue.concat(initialData);
}
};
return dojox.timing.Streamer;
});

0 comments on commit 39781e9

Please sign in to comment.