Skip to content

Commit

Permalink
massive whitespace fix refs #12196 \!strict
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@23843 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
phiggins42 committed Feb 21, 2011
1 parent ba6fa2f commit e319ce3
Show file tree
Hide file tree
Showing 290 changed files with 11,330 additions and 11,330 deletions.
2 changes: 1 addition & 1 deletion AdapterRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dojo.AdapterRegistry = function(/*Boolean?*/ returnWrappers){

dojo.extend(dojo.AdapterRegistry, {
register: function(/*String*/ name, /*Function*/ check, /*Function*/ wrap, /*Boolean?*/ directReturn, /*Boolean?*/ override){
// summary:
// summary:
// register a check function to determine if the wrap function or
// object gets selected
// name:
Expand Down
2 changes: 1 addition & 1 deletion DeferredList.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dojo.DeferredList = function(/*Array*/ list, /*Boolean?*/ fireOnOneCallback, /*B
dojo.DeferredList.prototype = new dojo.Deferred();

dojo.DeferredList.prototype.gatherResults= function(deferredList){
// summary:
// summary:
// Gathers the results of the deferreds for packaging
// as the parameters to the Deferred Lists' callback

Expand Down
32 changes: 16 additions & 16 deletions NodeList-fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dojo.extend(dojo.NodeList, {
dojo.mixin(tmpArgs, args);
return obj[method](tmpArgs);
})
);
);
return args.auto ? a.play() && this : a; // dojo.Animation|dojo.NodeList
},

Expand All @@ -24,7 +24,7 @@ dojo.extend(dojo.NodeList, {
// wipe in all elements of this NodeList via `dojo.fx.wipeIn`
//
// args: Object?
// Additional dojo.Animation arguments to mix into this set with the addition of
// Additional dojo.Animation arguments to mix into this set with the addition of
// an `auto` parameter.
//
// returns: dojo.Animation|dojo.NodeList
Expand All @@ -48,7 +48,7 @@ dojo.extend(dojo.NodeList, {
// wipe out all elements of this NodeList via `dojo.fx.wipeOut`
//
// args: Object?
// Additional dojo.Animation arguments to mix into this set with the addition of
// Additional dojo.Animation arguments to mix into this set with the addition of
// an `auto` parameter.
//
// returns: dojo.Animation|dojo.NodeList
Expand All @@ -67,7 +67,7 @@ dojo.extend(dojo.NodeList, {
// slide all elements of the node list to the specified place via `dojo.fx.slideTo`
//
// args: Object?
// Additional dojo.Animation arguments to mix into this set with the addition of
// Additional dojo.Animation arguments to mix into this set with the addition of
// an `auto` parameter.
//
// returns: dojo.Animation|dojo.NodeList
Expand All @@ -90,7 +90,7 @@ dojo.extend(dojo.NodeList, {
// fade in all elements of this NodeList via `dojo.fadeIn`
//
// args: Object?
// Additional dojo.Animation arguments to mix into this set with the addition of
// Additional dojo.Animation arguments to mix into this set with the addition of
// an `auto` parameter.
//
// returns: dojo.Animation|dojo.NodeList
Expand All @@ -109,7 +109,7 @@ dojo.extend(dojo.NodeList, {
// fade out all elements of this NodeList via `dojo.fadeOut`
//
// args: Object?
// Additional dojo.Animation arguments to mix into this set with the addition of
// Additional dojo.Animation arguments to mix into this set with the addition of
// an `auto` parameter.
//
// returns: dojo.Animation|dojo.NodeList
Expand Down Expand Up @@ -145,14 +145,14 @@ dojo.extend(dojo.NodeList, {
// example:
// | dojo.query(".zork").animateProperty({
// | duration: 500,
// | properties: {
// | properties: {
// | color: { start: "black", end: "white" },
// | left: { end: 300 }
// | }
// | left: { end: 300 }
// | }
// | }).play();
//
// example:
// | dojo.query(".grue").animateProperty({
// | dojo.query(".grue").animateProperty({
// | auto:true,
// | properties: {
// | height:240
Expand All @@ -161,18 +161,18 @@ dojo.extend(dojo.NodeList, {
return this._anim(dojo, "animateProperty", args); // dojo.Animation|dojo.NodeList
},

anim: function( /*Object*/ properties,
/*Integer?*/ duration,
/*Function?*/ easing,
anim: function( /*Object*/ properties,
/*Integer?*/ duration,
/*Function?*/ easing,
/*Function?*/ onEnd,
/*Integer?*/ delay){
// summary:
// Animate one or more CSS properties for all nodes in this list.
// The returned animation object will already be playing when it
// is returned. See the docs for `dojo.anim` for full details.
// properties: Object
// the properties to animate. does NOT support the `auto` parameter like other
// NodeList-fx methods.
// the properties to animate. does NOT support the `auto` parameter like other
// NodeList-fx methods.
// duration: Integer?
// Optional. The time to run the animations for
// easing: Function?
Expand All @@ -197,7 +197,7 @@ dojo.extend(dojo.NodeList, {
easing: easing
});
})
);
);
if(onEnd){
dojo.connect(canim, "onEnd", onEnd);
}
Expand Down
10 changes: 5 additions & 5 deletions NodeList-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ dojo.extend(dojo.NodeList, {
// summary:
// see `dojo.html.set()`. Set the content of all elements of this NodeList
//
// description:
// Based around `dojo.html.set()`, set the content of the Elements in a
// description:
// Based around `dojo.html.set()`, set the content of the Elements in a
// NodeList to the given content (string/node/nodelist), with optional arguments
// to further tune the set content behavior.
//
// example:
// | dojo.query(".thingList").html("<li dojoType='dojo.dnd.Moveable'>1</li><li dojoType='dojo.dnd.Moveable'>2</li><li dojoType='dojo.dnd.Moveable'>3</li>",
// | {
// | parseContent: true,
// | {
// | parseContent: true,
// | onBegin: function(){
// | this.content = this.content.replace(/([0-9])/g, this.id + ": $1");
// | this.inherited("onBegin", arguments);
Expand All @@ -28,7 +28,7 @@ dojo.extend(dojo.NodeList, {

var dhs = new dojo.html._ContentSetter(params || {});
this.forEach(function(elm){
dhs.node = elm;
dhs.node = elm;
dhs.set(content);
dhs.tearDown();
});
Expand Down
18 changes: 9 additions & 9 deletions NodeList-manipulate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dojo["NodeList-manipulate"] = {
}

function makeWrapNode(/*DOMNode||String*/html, /*DOMNode*/refNode){
// summary:
// summary:
// convert HTML into nodes if it is not already a node.
if(typeof html == "string"){
html = dojo._toDom(html, (refNode && refNode.ownerDocument));
Expand Down Expand Up @@ -646,25 +646,25 @@ dojo["NodeList-manipulate"] = {
// example:
// assume a DOM created by this markup:
// | <div class="container">
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="red">Red One</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="blue">Blue One</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="red">Red Two</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="blue">Blue Two</div>
// | </div>
// Running this code:
// | dojo.query(".red").replaceAll(".blue");
// Results in this DOM structure:
// | <div class="container">
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="red">Red One</div>
// | <div class="red">Red Two</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="spacer">___</div>
// | <div class="red">Red One</div>
// | <div class="red">Red Two</div>
// | </div>
Expand Down
6 changes: 3 additions & 3 deletions NodeList-traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dojo.extend(dojo.NodeList, {
ary = ary.concat(items);
}
}
return ary;
return ary;
},

_getUniqueAsNodeList: function(nodes){
Expand Down Expand Up @@ -53,7 +53,7 @@ dojo.extend(dojo.NodeList, {
// summary:
// cycles over all the nodes and calls a callback
// to collect nodes for a possible inclusion in a result.
// The callback will get two args: callback(node, ary),
// The callback will get two args: callback(node, ary),
// where ary is the array being used to collect the nodes.
return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(callback), query); //dojo.NodeList
},
Expand Down Expand Up @@ -442,7 +442,7 @@ dojo.extend(dojo.NodeList, {
// | </div>
// Running this code:
// | dojo.query(".blue").last();
// returns the last div with class "blue",
// returns the last div with class "blue",
return this._wrap((this.length ? [this[this.length - 1]] : []), this); //dojo.NodeList
},

Expand Down
40 changes: 20 additions & 20 deletions OpenAjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
* OpenAjax.js
*
* Reference implementation of the OpenAjax Hub, as specified by OpenAjax Alliance.
* Specification is under development at:
* Specification is under development at:
*
* http://www.openajax.org/member/wiki/OpenAjax_Hub_Specification
*
* Copyright 2006-2007 OpenAjax Alliance
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0 . Unless
* required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0 . Unless
* required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
******************************************************************************/
Expand Down Expand Up @@ -44,7 +44,7 @@ if(!window["OpenAjax"]){
prefix: prefix,
namespaceURI: nsURL,
version: version,
extraData: extra
extraData: extra
};
this.publish(ooh+"registerLibrary", libs[prefix]);
}
Expand Down Expand Up @@ -75,7 +75,7 @@ if(!window["OpenAjax"]){
this._publish(this._subscriptions, path, 0, name, message);
this._pubDepth--;
if((this._cleanup.length > 0) && (this._pubDepth == 0)){
for(var i = 0; i < this._cleanup.length; i++){
for(var i = 0; i < this._cleanup.length; i++){
this.unsubscribe(this._cleanup[i].hdl);
}
delete(this._cleanup);
Expand All @@ -93,12 +93,12 @@ if(!window["OpenAjax"]){
var token = path[index];
if(index == path.length){
tree.s.push(sub);
}else{
}else{
if(typeof tree.c == "undefined"){
tree.c = {};
}
if(typeof tree.c[token] == "undefined"){
tree.c[token] = { c: {}, s: [] };
tree.c[token] = { c: {}, s: [] };
this._subscribe(tree.c[token], path, index + 1, sub);
}else{
this._subscribe( tree.c[token], path, index + 1, sub);
Expand All @@ -113,7 +113,7 @@ if(!window["OpenAjax"]){
node = tree;
}else{
this._publish(tree.c[path[index]], path, index + 1, name, msg);
this._publish(tree.c["*"], path, index + 1, name, msg);
this._publish(tree.c["*"], path, index + 1, name, msg);
node = tree.c["**"];
}
if(typeof node != "undefined"){
Expand All @@ -133,7 +133,7 @@ if(!window["OpenAjax"]){
// get a function object
fcb = sc[fcb];
}
if((!fcb) ||
if((!fcb) ||
(fcb.call(sc, name, msg, d))) {
cb.call(sc, name, msg, d);
}
Expand All @@ -149,24 +149,24 @@ if(!window["OpenAjax"]){
var childNode = tree.c[path[index]];
this._unsubscribe(childNode, path, index + 1, sid);
if(childNode.s.length == 0) {
for(var x in childNode.c)
return;
delete tree.c[path[index]];
for(var x in childNode.c)
return;
delete tree.c[path[index]];
}
return;
}
else {
var callbacks = tree.s;
var max = callbacks.length;
for(var i = 0; i < max; i++)
for(var i = 0; i < max; i++)
if(sid == callbacks[i].sid) {
if(this._pubDepth > 0) {
callbacks[i].cb = null;
this._cleanup.push(callbacks[i]);
callbacks[i].cb = null;
this._cleanup.push(callbacks[i]);
}
else
callbacks.splice(i, 1);
return;
return;
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions Stateful.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dojo.declare("dojo.Stateful", null, {
// description:
// Get a named property on a Stateful object. The property may
// potentially be retrieved via a getter method in subclasses. In the base class
// this just retrieves the object's property.
// this just retrieves the object's property.
// For example:
// | stateful = new dojo.Stateful({foo: 3});
// | stateful.get("foo") // returns 3
Expand All @@ -36,11 +36,11 @@ dojo.declare("dojo.Stateful", null, {
// summary:
// Set a property on a Stateful instance
// name:
// The property to set.
// The property to set.
// value:
// The value to set in the property.
// description:
// Sets named properties on a stateful object and notifies any watchers of
// Sets named properties on a stateful object and notifies any watchers of
// the property. A programmatic setter may be defined in subclasses.
// For example:
// | stateful = new dojo.Stateful();
Expand All @@ -57,7 +57,7 @@ dojo.declare("dojo.Stateful", null, {
// This is equivalent to calling set(foo, "Howdy") and set(bar, 3)
if(typeof name === "object"){
for(var x in name){
this.set(x, name[x]);
this.set(x, name[x]);
}
return this;
}
Expand All @@ -72,17 +72,17 @@ dojo.declare("dojo.Stateful", null, {
// summary:
// Watches a property for changes
// name:
// Indicates the property to watch. This is optional (the callback may be the
// Indicates the property to watch. This is optional (the callback may be the
// only parameter), and if omitted, all the properties will be watched
// returns:
// An object handle for the watch. The unwatch method of this object
// An object handle for the watch. The unwatch method of this object
// can be used to discontinue watching this property:
// | var watchHandle = obj.watch("foo", callback);
// | watchHandle.unwatch(); // callback won't be called now
// callback:
// The function to execute when the property changes. This will be called after
// the property has been changed. The callback will be called with the |this|
// set to the instance, the first argument as the name of the property, the
// set to the instance, the first argument as the name of the property, the
// second argument as the old value and the third argument as the new value.

var callbacks = this._watchCallbacks;
Expand Down
2 changes: 1 addition & 1 deletion _base.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ define("dojo/_base",[
"dojo/_base/Color",
dojo.isBrowser? "dojo/_base/browser" : "dojo/_base/lang"], function(){
return dojo;
});
});
2 changes: 1 addition & 1 deletion _base/Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ define("dojo/_base/Color", ["dojo/lib/kernel", "dojo/_base/array", "dojo/_base/l
// Builds a `dojo.Color` from a 3 or 4 element array, mapping each
// element in sequence to the rgb(a) values of the color.
// example:
// | var myColor = dojo.colorFromArray([237,237,237,0.5]); // grey, 50% alpha
// | var myColor = dojo.colorFromArray([237,237,237,0.5]); // grey, 50% alpha
// returns:
// A dojo.Color object. If obj is passed, it will be the return value.
var t = obj || new d.Color();
Expand Down
Loading

0 comments on commit e319ce3

Please sign in to comment.