Skip to content

Commit

Permalink
refs #17778, fix typos in inline docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vlajos authored and dylans committed Mar 8, 2014
1 parent 84e9020 commit b1ae6d2
Show file tree
Hide file tree
Showing 91 changed files with 125 additions and 125 deletions.
4 changes: 2 additions & 2 deletions atom/tests/io/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ doh.register("dojox.atom.tests.io.module", [
});
}, function(error, args){
// error callback
d.errback("Retreiving the entry failed.");
d.errback("Retrieving the entry failed.");
});
return d;
}
Expand All @@ -509,7 +509,7 @@ doh.register("dojox.atom.tests.io.module", [
});
}, function(error, args){
// error callback
d.errback("Retreiving the entry failed.");
d.errback("Retrieving the entry failed.");
});
return d;
}
Expand Down
4 changes: 2 additions & 2 deletions atom/widget/FeedViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ var FeedViewer = declare("dojox.atom.widget.FeedViewer", [_Widget, _Templated, _

onEntrySelected: function(/*object*/entry){
// summary:
// Function intended for over-riding/replacement as an attachpoint to for other items to recieve
// Function intended for over-riding/replacement as an attachpoint to for other items to receive
// selection notification.
// entry:
// The dojox.atom.io.model.Entry object selected.
Expand Down Expand Up @@ -388,7 +388,7 @@ var FeedViewer = declare("dojox.atom.widget.FeedViewer", [_Widget, _Templated, _
baseURL = fullURL;
}
}else{
//We want to find the first occurance of / after the <protocol>://
//We want to find the first occurrence of / after the <protocol>://
index = fullURL.indexOf("://");
if(index > 0){
index = index + 3;
Expand Down
18 changes: 9 additions & 9 deletions calc/_ExecutorIframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
return text.replace(/\x01((\w|\.)+\s*)\([^()]*\)/, replaceFuncWithNum);
}
function FactorialParser(text){
// loop this untill all ! are gone (in main)
// loop this until all ! are gone (in main)
return text.replace(factorialRE, "\x01"+"factorial($1)");
}
function putFuncChar(wholematch){
Expand Down Expand Up @@ -359,7 +359,7 @@
// keep going until there is nothing left that can be simplified
while (isSimpleGrouping(text)||isSimpleFunction(text)||factorialRE.test(text)||caretRE.test(text)||radicalRE.test(text)||unaryRE.test(text)||binaryHighRE.test(text)||binaryLowRE.test(text)){

var sTextOrginal = text;
var sTextOriginal = text;

if(isSimpleFunction(text)){
var debugText = text;
Expand All @@ -383,38 +383,38 @@

// factorials must come first for 5^2! cases, it equals 25
text = FactorialParser(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
continue;
}

text = caretParser(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
continue;
}

text = radicalOperatorParse(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
continue;
}
text = unaryOperatorRightsideParse(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
// put parentheses around the unary operators so 0--2 will pass
numbers[numbers.length-1] = "("+numbers[numbers.length-1]+")";
continue;
}
text = unaryOperatorParse(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
// put parentheses around the unary operators so 0--2 will pass
numbers[numbers.length-1] = "("+numbers[numbers.length-1]+")";
continue;
}

text = binaryHighPriorityOperatorParse(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
continue;
}
text = binaryLowPriorityOperatorParse(text);
if(text!=sTextOrginal){
if(text!=sTextOriginal){
continue;
}
// it should never ever make it to this point. If it does, I'll want to know about it.
Expand Down
2 changes: 1 addition & 1 deletion charting/axis2d/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ define(["dojo/_base/declare", "../Element"],
},
calculate: function(min, max, span){
// summary:
// Stub function to run the calcuations needed for drawing this axis.
// Stub function to run the calculations needed for drawing this axis.
// returns: dojox/charting/axis2d/Base
// A reference to the axis for functional chaining.
return this; // dojox/charting/axis2d/Base
Expand Down
8 changes: 4 additions & 4 deletions data/tests/stores/AndOrWriteStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4097,7 +4097,7 @@ dojox.data.tests.stores.AndOrWriteStore.getTests = function(){
deferred.errback(error);
};

var intialFetch = function(items, request){
var initialFetch = function(items, request){
var initialCount = items.length;
var canada = store.newItem({name: "Canada", abbr:"ca", capital:"Ottawa"});
store.setValue(canada, "someattribute", "modified a new item!");
Expand All @@ -4114,7 +4114,7 @@ dojox.data.tests.stores.AndOrWriteStore.getTests = function(){
};
store.fetch({onComplete: afterNewFetch, onError: onError});
};
store.fetch({onComplete: intialFetch, onError: onError});
store.fetch({onComplete: initialFetch, onError: onError});
return deferred; //Object
}
},
Expand All @@ -4136,7 +4136,7 @@ dojox.data.tests.stores.AndOrWriteStore.getTests = function(){
deferred.errback(error);
};

var intialFetch = function(items, request){
var initialFetch = function(items, request){
var initialCount = items.length;
var canada = store.newItem({name: "Canada", abbr:"ca", capital:"Ottawa"});
store.setValue(canada, "someattribute", "modified a new item!");
Expand Down Expand Up @@ -4187,7 +4187,7 @@ dojox.data.tests.stores.AndOrWriteStore.getTests = function(){
};
store.fetch({onComplete: afterNewFetch, onError: onError});
};
store.fetch({onComplete: intialFetch, onError: onError});
store.fetch({onComplete: initialFetch, onError: onError});
return deferred; //Object
}
},
Expand Down
2 changes: 1 addition & 1 deletion data/tests/stores/QueryReadStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tests.register("dojox.data.tests.stores.QueryReadStore",
t.assertEqual("Alabama", store.getValue(item, "name"));
t.assertEqual("<img src='images/Alabama.jpg'/>Alabama", store.getValue(item, "label"));
t.assertEqual("AL", store.getValue(item, "abbreviation"));
// Test the defaultValue cases (the third paramter).
// Test the defaultValue cases (the third parameter).
t.assertEqual("default value", store.getValue(item, "NAME", "default value"));
// TODO Test for null somehow ...
// Read api says: Returns null if and only if null was explicitly set as the attribute value.
Expand Down
2 changes: 1 addition & 1 deletion data/tests/stores/XmlStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ doh.register("dojox.data.tests.stores.XmlStore",
function onError(error, request) {
d.errback(error);
}
store.fetchItemByIdentity({identity: "A9B574_NONEXISTANT", onItem: onItem, onError: onError});
store.fetchItemByIdentity({identity: "A9B574_NONEXISTENT", onItem: onItem, onError: onError});
return d; //Object
},

Expand Down
2 changes: 1 addition & 1 deletion data/tests/stores/test_Tree_on_JsonRestStore.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h2>Selected Item:</h2>
<div dojoType="dijit.form.Button" iconClass="noteIcon" onClick="updateItem();">Update Item</div>

<h2>New Item</h2>
<p>Enter an Id, Name, and optionally a description to be added as a new item to the store. Upon successful addition, the tree will recieve notification of this event and respond accordingly. If you select a node the item will be added to that node, otherwise the item will be added to the tree root. "Id" is the identifer here and as such must be unique for all items in the store.</p>
<p>Enter an Id, Name, and optionally a description to be added as a new item to the store. Upon successful addition, the tree will receive notification of this event and respond accordingly. If you select a node the item will be added to that node, otherwise the item will be added to the tree root. "Id" is the identifer here and as such must be unique for all items in the store.</p>
Id: <input id="newId" width="50" value="Enter Item Id" /><br />
Name: <input id="label" width="50" value="Enter Item Name" /><br />
Description: <input id="someProperty" width="50" value="Enter Some Property Value" /><br /><br />
Expand Down
2 changes: 1 addition & 1 deletion date/relative.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ drelative.format = function(/*Date*/dateObject, /*__FormatOptions?*/options){
// is displayed
//
// If the day portion of the date falls within the past week (or the
// week preceeding relativeDate, if present), then the display will show
// week preceding relativeDate, if present), then the display will show
// day of week and time. This functionality can be turned off by setting
// weekCheck to false.
//
Expand Down
4 changes: 2 additions & 2 deletions date/tests/hebrew/Date.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ tests.register("dojox.date.tests.hebrew.Date",

// var m = ["TISHRI " , "HESHVAN", "KISLEV", "TEVET", "SHVAT" , "ADARI", "ADAR", "NISAN" , "IYAR" , "SIVAN" , "TAMMUZ", "AV" , "ELUL"];

var amouts = [2, 5, 6, 7, 8,12, 18,20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10, -50, 200, -200];
var amounts = [2, 5, 6, 7, 8,12, 18,20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10, -50, 200, -200];
var dateHebrewAdd, dateHebrewAddLeap;

dojo.forEach( amouts, function(amount, i){
dojo.forEach( amounts, function(amount, i){
dateHebrewAdd = dojox.date.hebrew.add(dateHebrew, "month", amount);
dateHebrewAddLeap = dojox.date.hebrew.add(dateHebrewLeap, "month", amount);
t.is(dojox.date.hebrew.difference(dateHebrew, dateHebrewAdd, "month"), amount);
Expand Down
4 changes: 2 additions & 2 deletions date/tests/islamic/Date.js
Original file line number Diff line number Diff line change
Expand Up @@ -1944,11 +1944,11 @@ tests.register("dojox.date.tests.islamic.Date",
var dateIslamic = new dojox.date.islamic.Date(1431, 4, 6);


var amouts = [2, 5, 6, 7, 8, 12, 18, 20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10, -50, 200, -200, 29, -29, 1, -1,
var amounts = [2, 5, 6, 7, 8, 12, 18, 20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10, -50, 200, -200, 29, -29, 1, -1,
23, 25];
var dateIslamicAdd;

dojo.forEach(amouts, function(amount, i) {
dojo.forEach(amounts, function(amount, i) {
dateIslamicAdd = dojox.date.islamic.add(dateIslamic, "month", amount);
t.is(dojox.date.islamic.difference(dateIslamic, dateIslamicAdd, "month"), amount);

Expand Down
4 changes: 2 additions & 2 deletions date/tests/umalqura/Date.js
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ tests.register("dojox.date.tests.umalqura.Date",
dateIslamicAdd = dojox.date.umalqura.add(dateIslamic, "day", 0);
dateDiff = dojox.date.umalqura.difference(dateIslamicAdd, dateIslamic, "day");
var dateDiff2 = dojox.date.umalqura.difference(dateIslamic, dateIslamic, "day");
var amouts = [-1, 0, 1, 2, 5, 6, 7, 8, 12, 18, 20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10,
var amounts = [-1, 0, 1, 2, 5, 6, 7, 8, 12, 18, 20, 24, 50, -3, -4, -5, -6, -7, -8, -9, -10,
-50, 200, -200];
var units = [
"year",
Expand All @@ -2422,7 +2422,7 @@ tests.register("dojox.date.tests.umalqura.Date",
"millisecond"
];
dojo.forEach(inputDates, function (inDate, i) {
dojo.forEach(amouts, function (amount, j) {
dojo.forEach(amounts, function (amount, j) {
dojo.forEach(units, function (unit, k) {
dateIslamic = new dojox.date.umalqura.Date(inDate[0], inDate[1], inDate[2]);
dateIslamicAdd = dojox.date.umalqura.add(dateIslamic, unit, amount);
Expand Down
4 changes: 2 additions & 2 deletions drawing/stencil/_Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var ToolsSetup = {
// This object is inserted into the *function* of
// a tool (not a stencil). Like: function.ToolsSetup
// It must be attached after constructr creation, so
// this object is found at the botton of the file.
// this object is found at the bottom of the file.
// name: String
// Fully qualified name of constructor
Expand Down Expand Up @@ -554,7 +554,7 @@ var Base = oo.declare(
}

if(this.useSelectedStyle){
// using the orginal selected style copy as
// using the original selected style copy as
// a reference map of what props to copy
for(nm in this.style.norm){
if(this.selCopy[nm]===undefined){
Expand Down
4 changes: 2 additions & 2 deletions dtl/tests/text/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,14 @@ doh.register("dojox.dtl.text.tag",
people: [
{ firstName: "Bill", lastName: "Clinton", gender: "Male" },
{ firstName: "Margaret", lastName: "Thatcher", gender: "Female" },
{ firstName: "Path", lastName: "Smith", gender: "Unkown" },
{ firstName: "Path", lastName: "Smith", gender: "Unknown" },
{ firstName: "Condoleezza", lastName: "Rice", gender: "Female" },
{ firstName: "George", lastName: "Bush", gender: "Male" }
]
});

var template = new dd.Template("{% regroup people|dictsort:'gender' by gender as grouped %}<ul>{% for group in grouped %}<li>{{ group.grouper }}<ul>{% for item in group.list %}<li>{{ item.firstName }} {{ item.lastName }}</li>{% endfor %}</ul></li>{% endfor %}</ul>");
t.t(template.render(context).match(new RegExp("^<ul><li>Female<ul><li>(Condoleezza Rice|Margaret Thatcher)</li><li>(Condoleezza Rice|Margaret Thatcher)</li></ul></li><li>Male<ul><li>(Bill Clinton|George Bush)</li><li>(Bill Clinton|George Bush)</li></ul></li><li>Unkown<ul><li>Path Smith</li></ul></li></ul>$")));
t.t(template.render(context).match(new RegExp("^<ul><li>Female<ul><li>(Condoleezza Rice|Margaret Thatcher)</li><li>(Condoleezza Rice|Margaret Thatcher)</li></ul></li><li>Male<ul><li>(Bill Clinton|George Bush)</li><li>(Bill Clinton|George Bush)</li></ul></li><li>Unknown<ul><li>Path Smith</li></ul></li></ul>$")));
},
function test_tag_spaceless(t){
var dd = dojox.dtl;
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/AutoUrlLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ var AutoUrlLink = dojo.declare("dojox.editor.plugins.AutoUrlLink", [_Plugin], {
// summary:
// Find the occurrace of the URL strings.
// FF, Chrome && Safri have a behavior that when insertHTML is executed,
// the orignal referrence to the text node will be the text node next to
// the original referrence to the text node will be the text node next to
// the inserted anchor automatically. So we have to re-caculate the index of
// the following URL occurrence.
// value:
Expand Down
4 changes: 2 additions & 2 deletions editor/plugins/SpellCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ var SpellCheckScriptMultiPart = dojo.declare("dojox.editor.plugins._SpellCheckSc
r = len;
}else{
// If there is no delimiter (emplty string), leave the right boundary where it is.
// Else extend the right boundary to the first occurance of the delimiter if
// Else extend the right boundary to the first occurrence of the delimiter if
// it doesn't meet the end of the content.
while(dt && content.charAt(r) != dt && r <= len){
r++;
Expand Down Expand Up @@ -459,7 +459,7 @@ var SpellCheckScriptMultiPart = dojo.declare("dojox.editor.plugins._SpellCheckSc
},

onLoad: function(/*String*/ data){
// Stub method for a sucessful call
// Stub method for a successful call
},

setWaitingTime: function(/*Number*/ seconds){
Expand Down
2 changes: 1 addition & 1 deletion editor/tests/PorterStemmer.php.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Usage: $stem = PorterStemmer::getStem($word);
*
* Refrence: "An algorithm for suffix stripping", M.F.Porter, http://tartarus.org/martin/PorterStemmer/def.txt
* Reference: "An algorithm for suffix stripping", M.F.Porter, http://tartarus.org/martin/PorterStemmer/def.txt
*
*/

Expand Down
2 changes: 1 addition & 1 deletion form/PasswordValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var _OldPWBox = declare("dojox.form._OldPWBox", _ChildTextBox, {

_setBlurValue: function(){
// TextBox._setBlurValue calls this._setValueAttr(this.get('value'), ...)
// Because we are overridding _getValueAttr to return "" when the containerWidget
// Because we are overriding _getValueAttr to return "" when the containerWidget
// is not valid, TextBox._setBlurValue will cause OldPWBox's value to be set to ""
//
// So, we directly call ValidationTextBox._getValueAttr to bypass our _getValueAttr
Expand Down
2 changes: 1 addition & 1 deletion form/tests/test_FileUploaderTabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3>
work fine.
<br/><br/>
This test also shows work around for the problem. View source of this test and see that in Tab 3, the FileUploader
is in a seperate div floating over the TabContainer. When Tab #3 is shown and hidden, the div is moved off and on screen.
is in a separate div floating over the TabContainer. When Tab #3 is shown and hidden, the div is moved off and on screen.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion form/tests/test_ListInput.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
});


//test begining
//test beginning
dojo.require("dojox.form.ListInput");
dojo.require("dojox.validate.regexp");

Expand Down
2 changes: 1 addition & 1 deletion fx/ext-dojo/complex.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array","dojo/_base/d
makePropObject: function(/* String */beg, /* String */end){
// summary:
// Returns an object that stores the numeric value and
// units of the beggining and ending properties.
// units of the beginning and ending properties.

var b = this.getNumAndUnits(beg);
var e = this.getNumAndUnits(end);
Expand Down
2 changes: 1 addition & 1 deletion fx/split.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lang.mixin(dojoxFx,{
// Returns an animation that will split the node into a grid
// of pieces that move independently.
// args:
// - args.crop: Boolean - If true, pieces will only be visible inside node's boundries
// - args.crop: Boolean - If true, pieces will only be visible inside node's boundaries
// - args.rows: Integer - The number of horizontal pieces (default is 3)
// - args.columns: Integer - The number of vertical pieces (default is 3)
// - args.pieceAnimation: Function(piece, x, y, coords) - Returns either the dojo.Animation
Expand Down
2 changes: 1 addition & 1 deletion fx/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/fx","dojo/fx","./_base
// properties.
//
// returns: Array
// an array of raw, calculcated values (no keys), to be normalized/compared
// an array of raw, calculated values (no keys), to be normalized/compared
// elsewhere
return arrayUtil.map(dojoxFx._allowedProperties, function(style){
return cache[style]; // String
Expand Down
2 changes: 1 addition & 1 deletion fx/tests/example_backgroundPosition.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
anim = new dojo.Animation({
curve: new dojo._Line(0,-500),
duration: 3000,
onEnd: (function(){ anim.play(); }), // loop indefinately
onEnd: (function(){ anim.play(); }), // loop indefinitely
onAnimate: function(){
var str = Math.floor(parseInt(arguments[0]))+"px 0px";
dojo.style(node,"backgroundPosition",str);
Expand Down
2 changes: 1 addition & 1 deletion fx/tests/test_split.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ <h1 id="header1">dojox.fx.split</h1>
<li>The distance the pieces travel (as a multiple of the element's respective dimensions)</li>
<li>Whether or not to fade the pieces in/out</li>
<li>How much the effect should be randomized (a percentage)</li>
<li>Whether or not the pieces should appear outside the element's boundries</li>
<li>Whether or not the pieces should appear outside the element's boundaries</li>
</ul>
<p style="font-weight: bold">
Just click each box to play its animation!
Expand Down
2 changes: 1 addition & 1 deletion fx/tests/test_text.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ <h1 id="header2" style="opacity:0">dojox.fx.text</h1>
<li>The distance the pieces travel (as a multiple of the element's respective dimensions)</li>
<li>Whether or not to fade the pieces in/out</li>
<li>How much the effect should be randomized (a percentage)</li>
<li>Whether or not the pieces should appear outside the element's boundries</li>
<li>Whether or not the pieces should appear outside the element's boundaries</li>
</ul>
<p style="font-weight: bold">
Just click each block of text to play its animation!<br />
Expand Down
Loading

0 comments on commit b1ae6d2

Please sign in to comment.