Skip to content

Commit

Permalink
missing semicolons, fixes #14405 !strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed Dec 7, 2011
1 parent b464be7 commit eeb1b12
Show file tree
Hide file tree
Showing 20 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion OpenAjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if(!window["OpenAjax"]){
OpenAjax._cleanup = [];
OpenAjax._subIndex = 0;
OpenAjax._pubDepth = 0;
}
};
};
// Register the OpenAjax Hub itself as a library.
OpenAjax.hub.registerLibrary("OpenAjax", "http://openajax.org/hub", "0.6", {});
Expand Down
4 changes: 2 additions & 2 deletions _base/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ define(["./kernel", "../has", "./lang"], function(dojo, has, lang){
}
}
return every; // Boolean
}
};
}
// var every = everyOrSome(false), some = everyOrSome(true);

Expand Down Expand Up @@ -266,7 +266,7 @@ define(["./kernel", "../has", "./lang"], function(dojo, has, lang){
}
}
return -1; // Number
}
};
}
// var indexOf = index(true), lastIndexOf = index(false);

Expand Down
2 changes: 1 addition & 1 deletion data/ObjectStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ return declare("dojo.data.ObjectStore", [Evented],{
query[i].toString = (function(original){
return function(){
return original;
}
};
})(required);
}
}
Expand Down
2 changes: 1 addition & 1 deletion dnd/Source.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if(!kernel.isAsync){
ready(0, function(){
var requires = ["dojo/dnd/AutoSource", "dojo/dnd/Target"];
require(requires); // use indirection so modules not rolled into a build
})
});
}

var Source = declare("dojo.dnd.Source", Selector, {
Expand Down
2 changes: 1 addition & 1 deletion dnd/TimedMoveable.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ define(["../_base/declare", "./Moveable"], function(declare, Moveable) {
// stop timer
clearTimeout(mover._timer);
// reflect the last received position
oldOnMove.call(this, mover, mover._leftTop)
oldOnMove.call(this, mover, mover._leftTop);
}
Moveable.prototype.onMoveStop.apply(this, arguments);
},
Expand Down
2 changes: 1 addition & 1 deletion dom-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ define(["exports", "./_base/sniff", "./_base/lang", "./dom", "./dom-style", "./d
return node; // DomNode
}
if(forceProp || typeof value == "boolean" || lang.isFunction(value)){
return prop.set(node, name, value)
return prop.set(node, name, value);
}
// node's attribute
node.setAttribute(attrNames[lc] || name, value);
Expand Down
2 changes: 1 addition & 1 deletion dom-geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ define(["./_base/sniff", "./_base/window","./dom", "./dom-style"],
return {
w: (size.right - size.left) + me.w,
h: (size.bottom - size.top) + me.h
}
};
};

geom.normalizeEvent = function(event){
Expand Down
2 changes: 1 addition & 1 deletion dom-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ define(["./_base/sniff", "./dom"], function(has, dom){
s.left = sLeft;
rs.left = rsLeft;
return avalue;
}
};
}
//>>excludeEnd("webkitMobile");
style.toPixelValue = toPixel;
Expand Down
6 changes: 3 additions & 3 deletions on.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
};
return handles;
}
return addListener(target, type, listener, dontFix, matchesTarget)
return addListener(target, type, listener, dontFix, matchesTarget);
};
var touchEvents = /^touch/;
function addListener(target, type, listener, dontFix, matchesTarget){
Expand Down Expand Up @@ -356,8 +356,8 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
return function(evt){
evt = on._fixEvent(evt, this);
return listener.call(this, evt);
}
}
};
};
var fixAttach = function(target, type, listener){
listener = fixListener(listener);
if(((target.ownerDocument ? target.ownerDocument.parentWindow : target.parentWindow || target.window || window) != top ||
Expand Down
44 changes: 22 additions & 22 deletions selector/acme.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ define([
if(specials.indexOf(query.slice(-1)) >= 0){
// if we end with a ">", "+", or "~", that means we're implicitly
// searching all children, so make it explicit
query += " * "
query += " * ";
}else{
// if you have not provided a terminator, one will be provided for
// you...
Expand Down Expand Up @@ -395,7 +395,7 @@ define([

return function(){
return first.apply(window, arguments) && second.apply(window, arguments);
}
};
};

var getArr = function(i, arr){
Expand Down Expand Up @@ -430,15 +430,15 @@ define([
// an E element whose "foo" attribute value contains
// the substring "bar"
return (_getAttr(elem, attr).indexOf(value)>=0);
}
};
},
"^=": function(attr, value){
// E[foo^="bar"]
// an E element whose "foo" attribute value begins exactly
// with the string "bar"
return function(elem){
return (_getAttr(elem, attr).indexOf(value)==0);
}
};
},
"$=": function(attr, value){
// E[foo$="bar"]
Expand All @@ -447,7 +447,7 @@ define([
return function(elem){
var ea = " "+_getAttr(elem, attr);
return (ea.lastIndexOf(value)==(ea.length-value.length));
}
};
},
"~=": function(attr, value){
// E[foo~="bar"]
Expand All @@ -460,7 +460,7 @@ define([
return function(elem){
var ea = " "+_getAttr(elem, attr)+" ";
return (ea.indexOf(tval)>=0);
}
};
},
"|=": function(attr, value){
// E[hreflang|="en"]
Expand All @@ -474,12 +474,12 @@ define([
(ea == value) ||
(ea.indexOf(valueDash)==0)
);
}
};
},
"=": function(attr, value){
return function(elem){
return (_getAttr(elem, attr) == value);
}
};
}
};

Expand Down Expand Up @@ -558,7 +558,7 @@ define([
"checked": function(name, condition){
return function(elem){
return !!("checked" in elem ? elem.checked : elem.selected);
}
};
},
"first-child": function(){ return _lookLeft; },
"last-child": function(){ return _lookRight; },
Expand All @@ -579,7 +579,7 @@ define([
if((nt === 1)||(nt == 3)){ return false; }
}
return true;
}
};
},
"contains": function(name, condition){
var cz = condition.charAt(0);
Expand All @@ -588,7 +588,7 @@ define([
}
return function(elem){
return (elem.innerHTML.indexOf(condition) >= 0);
}
};
},
"not": function(name, condition){
var p = getQueryParts(condition)[0];
Expand All @@ -602,7 +602,7 @@ define([
var ntf = getSimpleFilterFunc(p, ignores);
return function(elem){
return (!ntf(elem));
}
};
},
"nth-child": function(name, condition){
var pi = parseInt;
Expand Down Expand Up @@ -640,15 +640,15 @@ define([
return function(elem){
var i = getNodeIndex(elem);
return (i>=lb) && (ub<0 || i<=ub) && ((i % pred) == idx);
}
};
}else{
condition = idx;
}
}
var ncount = pi(condition);
return function(elem){
return (getNodeIndex(elem) == ncount);
}
};
}
};

Expand All @@ -657,11 +657,11 @@ define([
if(clc == "class"){ cond = "className"; }
return function(elem){
return (caseSensitive ? elem.getAttribute(cond) : elem[cond]||elem[clc]);
}
};
} : function(cond){
return function(elem){
return (elem && elem.getAttribute && elem.hasAttribute(cond));
}
};
};

var getSimpleFilterFunc = function(query, ignores){
Expand Down Expand Up @@ -762,7 +762,7 @@ define([
break;
}
return ret;
}
};
};

var _nextSiblings = function(filterFunc){
Expand All @@ -780,7 +780,7 @@ define([
te = te[_ns];
}
return ret;
}
};
};

// get an array of child *elements*, skipping text and comment nodes
Expand Down Expand Up @@ -913,7 +913,7 @@ define([
return getArr(te, arr);
}
}
}
};
}else if(
ecs &&
// isAlien check. Workaround for Prototype.js being totally evil/dumb.
Expand Down Expand Up @@ -1048,13 +1048,13 @@ define([
var r = tef(root, []);
if(r){ r.nozip = true; }
return r;
}
};
}

// otherwise, break it up and return a runner that iterates over the parts recursively
return function(root){
return filterDown(root, qparts);
}
};
};

// NOTES:
Expand Down Expand Up @@ -1191,7 +1191,7 @@ define([
// default that way in the future
return getQueryFunc(query, true)(root);
}
}
};
}else{
// DOM branch
var parts = query.split(/\s*,\s*/);
Expand Down
6 changes: 3 additions & 3 deletions selector/lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ if(!has("dom-matches-selector")){
tagName = tagName[caseFix]();
return function(node){
return node.tagName == tagName;
}
};
}
function className(className){
var classNameSpaced = ' ' + className + ' ';
return function(node){
return node.className.indexOf(className) > -1 && (' ' + node.className + ' ').indexOf(classNameSpaced) > -1;
}
};
}
var attrComparators = {
"^=": function(attrValue, value){
Expand Down Expand Up @@ -163,7 +163,7 @@ if(!has("dom-matches-selector")){
return function(node){
var attrValue = node.getAttribute(name);
return attrValue && comparator(attrValue, value);
}
};
}
function ancestor(matcher){
return function(node, root){
Expand Down
6 changes: 3 additions & 3 deletions tests/_base/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tests.register("tests._base.connect",
},
function args4Test(t){
// standard 4 args test
var ok, obj = { foo: function(){ok=false;}, bar: function(){ok=true} };
var ok, obj = { foo: function(){ok=false;}, bar: function(){ok=true;} };
dojo.connect(obj, "foo", obj, "bar");
obj.foo();
t.is(true, ok);
Expand Down Expand Up @@ -180,7 +180,7 @@ tests.register("tests._base.connect",
},
function scopeTest1(t){
var foo = { ok: true, foo: function(){this.ok=false;} };
var bar = { ok: false, bar: function(){this.ok=true} };
var bar = { ok: false, bar: function(){this.ok=true;} };
// link foo.foo to bar.bar with natural scope
var link = dojo.connect(foo, "foo", bar, "bar");
foo.foo();
Expand All @@ -189,7 +189,7 @@ tests.register("tests._base.connect",
},
function scopeTest2(t){
var foo = { ok: true, foo: function(){this.ok=false;} };
var bar = { ok: false, bar: function(){this.ok=true} };
var bar = { ok: false, bar: function(){this.ok=true;} };
// link foo.foo to bar.bar such that scope is always 'foo'
var link = dojo.connect(foo, "foo", bar.bar);
foo.foo();
Expand Down
2 changes: 1 addition & 1 deletion tests/_base/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tests.register("tests._base.json",
},
// tricky json, using our JSON extensions
function dojoExtendedJson(t){
var testObj = {ex1:{b:3, json:function(){return "json" + this.b}}, ex2: {b:4, __json__:function(){return "__json__" + this.b}}};
var testObj = {ex1:{b:3, json:function(){return "json" + this.b;}}, ex2: {b:4, __json__:function(){return "__json__" + this.b;}}};
var testStr = dojo.toJson(testObj);
t.assertEqual('{"ex1":"json3","ex2":"__json__4"}', testStr);
},
Expand Down
2 changes: 1 addition & 1 deletion tests/_base/loader/requirejs/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ define("func",
function () {
return function () {
return "You called a function";
}
};
}
);
2 changes: 1 addition & 1 deletion tests/_base/loader/requirejs/text/local.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define(['text!./resources/local.html'], function (localHtml) {
return {
localHtml: localHtml
}
};
});
2 changes: 1 addition & 1 deletion tests/aspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ doh.register("tests.aspect",
a = original(a);
order.push(a);
return a+1;
}
};
});
order.push(obj.method(0));
obj.method(4);
Expand Down
2 changes: 1 addition & 1 deletion tests/data/readOnlyItemFileTestTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -3060,7 +3060,7 @@ tests.data.readOnlyItemFileTestTemplates.testTemplates = [
}catch(e){
d.errback(e);
}
}
};
store.fetch({query: {value: "bar\*foo"}, onComplete: secondComplete, onError: error});
};
function error(error, request){
Expand Down
2 changes: 1 addition & 1 deletion tests/date/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests.register("tests.date.locale",
if(dojo.isAsync){
var def = new doh.Deferred(),
deps = dojo.map(partLocaleList, function(locale){
return dojo.getL10nName("dojo/cldr", "gregorian", locale)
return dojo.getL10nName("dojo/cldr", "gregorian", locale);
});
require(deps, function(){
def.callback(true);
Expand Down
Loading

0 comments on commit eeb1b12

Please sign in to comment.