mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merge pull request #309 from timgates42/bugfix_typos
docs: Fix a few typos
This commit is contained in:
commit
68d3d9e0e2
@ -301,7 +301,7 @@ var QUnit = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
|
* Specify the number of expected assertions to guarantee that failed test (no assertions are run at all) don't slip through.
|
||||||
*/
|
*/
|
||||||
expect: function(asserts) {
|
expect: function(asserts) {
|
||||||
config.current.expected = asserts;
|
config.current.expected = asserts;
|
||||||
@ -482,7 +482,7 @@ var config = {
|
|||||||
moduleDone: []
|
moduleDone: []
|
||||||
};
|
};
|
||||||
|
|
||||||
// Load paramaters
|
// Load parameters
|
||||||
(function() {
|
(function() {
|
||||||
var location = window.location || { search: "", protocol: "file:" },
|
var location = window.location || { search: "", protocol: "file:" },
|
||||||
params = location.search.slice( 1 ).split( "&" ),
|
params = location.search.slice( 1 ).split( "&" ),
|
||||||
@ -1070,7 +1070,7 @@ QUnit.equiv = function () {
|
|||||||
// for string, boolean, number and null
|
// for string, boolean, number and null
|
||||||
function useStrictEquality(b, a) {
|
function useStrictEquality(b, a) {
|
||||||
if (b instanceof a.constructor || a instanceof b.constructor) {
|
if (b instanceof a.constructor || a instanceof b.constructor) {
|
||||||
// to catch short annotaion VS 'new' annotation of a
|
// to catch short annotation VS 'new' annotation of a
|
||||||
// declaration
|
// declaration
|
||||||
// e.g. var i = 1;
|
// e.g. var i = 1;
|
||||||
// var j = new Number(1);
|
// var j = new Number(1);
|
||||||
@ -1099,7 +1099,7 @@ QUnit.equiv = function () {
|
|||||||
"regexp" : function(b, a) {
|
"regexp" : function(b, a) {
|
||||||
return QUnit.objectType(b) === "regexp"
|
return QUnit.objectType(b) === "regexp"
|
||||||
&& a.source === b.source && // the regex itself
|
&& a.source === b.source && // the regex itself
|
||||||
a.global === b.global && // and its modifers
|
a.global === b.global && // and its modifiers
|
||||||
// (gmi) ...
|
// (gmi) ...
|
||||||
a.ignoreCase === b.ignoreCase
|
a.ignoreCase === b.ignoreCase
|
||||||
&& a.multiline === b.multiline;
|
&& a.multiline === b.multiline;
|
||||||
@ -1147,7 +1147,7 @@ QUnit.equiv = function () {
|
|||||||
|
|
||||||
"object" : function(b, a) {
|
"object" : function(b, a) {
|
||||||
var i, j, loop;
|
var i, j, loop;
|
||||||
var eq = true; // unless we can proove it
|
var eq = true; // unless we can prove it
|
||||||
var aProperties = [], bProperties = []; // collection of
|
var aProperties = [], bProperties = []; // collection of
|
||||||
// strings
|
// strings
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user