Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

missing semicolons, fixes #14405 !strict.

  • Loading branch information...
commit eeb1b12fb028b2f4744cce45bece120220e063d5 1 parent b464be7
@wkeese wkeese authored
View
2  OpenAjax.js
@@ -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", {});
View
4 _base/array.js
@@ -230,7 +230,7 @@ define(["./kernel", "../has", "./lang"], function(dojo, has, lang){
}
}
return every; // Boolean
- }
+ };
}
// var every = everyOrSome(false), some = everyOrSome(true);
@@ -266,7 +266,7 @@ define(["./kernel", "../has", "./lang"], function(dojo, has, lang){
}
}
return -1; // Number
- }
+ };
}
// var indexOf = index(true), lastIndexOf = index(false);
View
2  data/ObjectStore.js
@@ -161,7 +161,7 @@ return declare("dojo.data.ObjectStore", [Evented],{
query[i].toString = (function(original){
return function(){
return original;
- }
+ };
})(required);
}
}
View
2  dnd/Source.js
@@ -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, {
View
2  dnd/TimedMoveable.js
@@ -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);
},
View
2  dom-attr.js
@@ -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);
View
2  dom-geometry.js
@@ -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){
View
2  dom-style.js
@@ -213,7 +213,7 @@ define(["./_base/sniff", "./dom"], function(has, dom){
s.left = sLeft;
rs.left = rsLeft;
return avalue;
- }
+ };
}
//>>excludeEnd("webkitMobile");
style.toPixelValue = toPixel;
View
6 on.js
@@ -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){
@@ -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 ||
View
44 selector/acme.js
@@ -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...
@@ -395,7 +395,7 @@ define([
return function(){
return first.apply(window, arguments) && second.apply(window, arguments);
- }
+ };
};
var getArr = function(i, arr){
@@ -430,7 +430,7 @@ 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"]
@@ -438,7 +438,7 @@ define([
// with the string "bar"
return function(elem){
return (_getAttr(elem, attr).indexOf(value)==0);
- }
+ };
},
"$=": function(attr, value){
// E[foo$="bar"]
@@ -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"]
@@ -460,7 +460,7 @@ define([
return function(elem){
var ea = " "+_getAttr(elem, attr)+" ";
return (ea.indexOf(tval)>=0);
- }
+ };
},
"|=": function(attr, value){
// E[hreflang|="en"]
@@ -474,12 +474,12 @@ define([
(ea == value) ||
(ea.indexOf(valueDash)==0)
);
- }
+ };
},
"=": function(attr, value){
return function(elem){
return (_getAttr(elem, attr) == value);
- }
+ };
}
};
@@ -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; },
@@ -579,7 +579,7 @@ define([
if((nt === 1)||(nt == 3)){ return false; }
}
return true;
- }
+ };
},
"contains": function(name, condition){
var cz = condition.charAt(0);
@@ -588,7 +588,7 @@ define([
}
return function(elem){
return (elem.innerHTML.indexOf(condition) >= 0);
- }
+ };
},
"not": function(name, condition){
var p = getQueryParts(condition)[0];
@@ -602,7 +602,7 @@ define([
var ntf = getSimpleFilterFunc(p, ignores);
return function(elem){
return (!ntf(elem));
- }
+ };
},
"nth-child": function(name, condition){
var pi = parseInt;
@@ -640,7 +640,7 @@ define([
return function(elem){
var i = getNodeIndex(elem);
return (i>=lb) && (ub<0 || i<=ub) && ((i % pred) == idx);
- }
+ };
}else{
condition = idx;
}
@@ -648,7 +648,7 @@ define([
var ncount = pi(condition);
return function(elem){
return (getNodeIndex(elem) == ncount);
- }
+ };
}
};
@@ -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){
@@ -762,7 +762,7 @@ define([
break;
}
return ret;
- }
+ };
};
var _nextSiblings = function(filterFunc){
@@ -780,7 +780,7 @@ define([
te = te[_ns];
}
return ret;
- }
+ };
};
// get an array of child *elements*, skipping text and comment nodes
@@ -913,7 +913,7 @@ define([
return getArr(te, arr);
}
}
- }
+ };
}else if(
ecs &&
// isAlien check. Workaround for Prototype.js being totally evil/dumb.
@@ -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:
@@ -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*/);
View
6 selector/lite.js
@@ -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){
@@ -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){
View
6 tests/_base/connect.js
@@ -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);
@@ -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();
@@ -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();
View
2  tests/_base/json.js
@@ -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);
},
View
2  tests/_base/loader/requirejs/func.js
@@ -2,6 +2,6 @@ define("func",
function () {
return function () {
return "You called a function";
- }
+ };
}
);
View
2  tests/_base/loader/requirejs/text/local.js
@@ -1,5 +1,5 @@
define(['text!./resources/local.html'], function (localHtml) {
return {
localHtml: localHtml
- }
+ };
});
View
2  tests/aspect.js
@@ -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);
View
2  tests/data/readOnlyItemFileTestTemplates.js
@@ -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){
View
2  tests/date/locale.js
@@ -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);
View
60 tests/json.js
@@ -11,37 +11,37 @@ define(["../main", "doh", "../json"], function(dojo, doh, JSON){
doh.register("tests.json", [
// all tests below are taken from #4.2 of the CSS3 Color Module
- function simpleString(t){ t.is("bar", JSON.parse('{"foo":"bar"}').foo)},
- function simpleTrue(t){ t.is(true, JSON.parse('{"foo":true}').foo)},
- function simpleFalse(t){ t.is(false, JSON.parse('{"foo":false}').foo)},
- function simpleNull(t){ t.is(null, JSON.parse('{"foo":null}').foo)},
- function simpleNumber(t){ t.is(3.3, JSON.parse('{"foo":3.3}', true).foo)},
- function strictString(t){ t.is("bar", JSON.parse('{"foo":"bar"}', true).foo)},
- function strictStringEsc(t){ t.is("b\n\t\"ar()", JSON.parse('{"foo":"b\\n\\t\\"ar()"}', true).foo)},
- function strictTrue(t){ t.is(true, JSON.parse('{"foo":true}', true).foo)},
- function strictFalse(t){ t.is(false, JSON.parse('{"foo":false}', true).foo)},
- function strictNull(t){ t.is(null, JSON.parse('{"foo":null}', true).foo)},
- function strictNumber(t){ t.is(3.3, JSON.parse('{"foo":3.3}', true).foo)},
- function strictNumberNeg(t){ t.is(-3.3, JSON.parse('{"foo":-3.3}', true).foo)},
- function exponentNegative(t){ t.is(3.3e-33, JSON.parse('{"foo":3.3e-33}', true).foo)},
- function exponent(t){ t.is(3.3e33, JSON.parse('{"foo":3.3e33}', true).foo)},
- function array(t){ t.is(3, JSON.parse('{"foo":[3,true,[]]}', true).foo[0])},
- function badCall(t){ mustThrow('{"foo":alert()}')},
- function badMath(t){ mustThrow('{"foo":3+4}')},
- function badIndex(t){ mustThrow('{"foo":"bar"}[3]')},
- function badKey(t){ mustThrow('{foo:"bar"}')},
+ function simpleString(t){ t.is("bar", JSON.parse('{"foo":"bar"}').foo); },
+ function simpleTrue(t){ t.is(true, JSON.parse('{"foo":true}').foo); },
+ function simpleFalse(t){ t.is(false, JSON.parse('{"foo":false}').foo); },
+ function simpleNull(t){ t.is(null, JSON.parse('{"foo":null}').foo); },
+ function simpleNumber(t){ t.is(3.3, JSON.parse('{"foo":3.3}', true).foo); },
+ function strictString(t){ t.is("bar", JSON.parse('{"foo":"bar"}', true).foo); },
+ function strictStringEsc(t){ t.is("b\n\t\"ar()", JSON.parse('{"foo":"b\\n\\t\\"ar()"}', true).foo); },
+ function strictTrue(t){ t.is(true, JSON.parse('{"foo":true}', true).foo); },
+ function strictFalse(t){ t.is(false, JSON.parse('{"foo":false}', true).foo); },
+ function strictNull(t){ t.is(null, JSON.parse('{"foo":null}', true).foo); },
+ function strictNumber(t){ t.is(3.3, JSON.parse('{"foo":3.3}', true).foo); },
+ function strictNumberNeg(t){ t.is(-3.3, JSON.parse('{"foo":-3.3}', true).foo); },
+ function exponentNegative(t){ t.is(3.3e-33, JSON.parse('{"foo":3.3e-33}', true).foo); },
+ function exponent(t){ t.is(3.3e33, JSON.parse('{"foo":3.3e33}', true).foo); },
+ function array(t){ t.is(3, JSON.parse('{"foo":[3,true,[]]}', true).foo[0]); },
+ function badCall(t){ mustThrow('{"foo":alert()}'); },
+ function badMath(t){ mustThrow('{"foo":3+4}'); },
+ function badIndex(t){ mustThrow('{"foo":"bar"}[3]'); },
+ function badKey(t){ mustThrow('{foo:"bar"}'); },
//function badKey2(t){ mustThrow('{2:"bar"}')},
- function badUnbalanced(t){ mustThrow('[')},
- function badUnbalanced2(t){ mustThrow('}')},
- function badType(t){ mustThrow('["foo":"bar"]')},
- function badUnbalanced2(t){ mustThrow('}')},
- function serializeString(t){ t.is('{"foo":"bar"}', JSON.stringify({"foo":"bar"}))},
- function serializeNull(t){ t.is('{"foo":null}', JSON.stringify({"foo":null}))},
- function serializeFunction(t){ t.is('{}', JSON.stringify({"foo":function(){}}))},
- function serializeNaN(t){ t.is('{"foo":null}', JSON.stringify({"foo":NaN}))},
- function serializeInfinity(t){ t.is('{"foo":null}', JSON.stringify({"foo":Infinity}))},
+ function badUnbalanced(t){ mustThrow('['); },
+ function badUnbalanced2(t){ mustThrow('}'); },
+ function badType(t){ mustThrow('["foo":"bar"]'); },
+ function badUnbalanced2(t){ mustThrow('}'); },
+ function serializeString(t){ t.is('{"foo":"bar"}', JSON.stringify({"foo":"bar"})); },
+ function serializeNull(t){ t.is('{"foo":null}', JSON.stringify({"foo":null})); },
+ function serializeFunction(t){ t.is('{}', JSON.stringify({"foo":function(){}})); },
+ function serializeNaN(t){ t.is('{"foo":null}', JSON.stringify({"foo":NaN})); },
+ function serializeInfinity(t){ t.is('{"foo":null}', JSON.stringify({"foo":Infinity})); },
// there is differences in how many decimals of accuracies in seconds in how Dates are serialized between browsers
- function serializeDate(t){ t.t(/1970-01-01T00:00:00.*Z/.test(JSON.parse(JSON.stringify({"foo":new Date(1)})).foo));},
+ function serializeDate(t){ t.t(/1970-01-01T00:00:00.*Z/.test(JSON.parse(JSON.stringify({"foo":new Date(1)})).foo)); },
function serializeCircular(t){
try{
var a = {};
@@ -54,7 +54,7 @@ define(["../main", "doh", "../json"], function(dojo, doh, JSON){
},
/*Apparently Firefox doesn't pass the key to the toJSON method*/
- function serializeToJSON(t){ t.is('{"foo":{"name":"value"}}', JSON.stringify({foo:{toJSON:function(key){return {name:"value"};}}}))}
+ function serializeToJSON(t){ t.is('{"foo":{"name":"value"}}', JSON.stringify({foo:{toJSON:function(key){return {name:"value"}; }}})); }
]);
var smallDataSet = {
View
2  topic.js
@@ -29,5 +29,5 @@ define(["./Evented"], function(Evented){
// A function to call when a message is published to the given topic
return hub.on.apply(hub, arguments);
}
- }
+ };
});
Please sign in to comment.
Something went wrong with that request. Please try again.