misc minor changes
This commit is contained in:
parent
a4ce29bff7
commit
459755e51f
3 changed files with 11 additions and 19 deletions
|
@ -127,23 +127,15 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() {
|
||||||
`region` or `continent`.
|
`region` or `continent`.
|
||||||
*/
|
*/
|
||||||
query: {
|
query: {
|
||||||
conditions: data.value ? [
|
conditions: [
|
||||||
{
|
'name', 'region', 'continent'
|
||||||
key: 'name',
|
].map(function(key) {
|
||||||
|
return {
|
||||||
|
key: key,
|
||||||
operator: '=',
|
operator: '=',
|
||||||
value: data.value
|
value: data.value
|
||||||
},
|
};
|
||||||
{
|
}),
|
||||||
key: 'region',
|
|
||||||
operator: '=',
|
|
||||||
value: data.value
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'continent',
|
|
||||||
operator: '=',
|
|
||||||
value: data.value
|
|
||||||
}
|
|
||||||
] : [],
|
|
||||||
operator: '|'
|
operator: '|'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
/*
|
/*
|
||||||
The code below implements a map widget to navigate a zoomable globe made of
|
The code below implements a map widget to navigate a zoomable globe made of
|
||||||
tiled images — similar to Google Maps. The catch is that the map doesn't
|
tiled images — similar to Google Maps. The catch is that the map doesn't
|
||||||
show the surface of the Earth, but the Internet instead of geographical
|
show the surface of the Earth, but the Internet — instead of geographical
|
||||||
or political boundaries, it maps the country-wise allocation of the IPv4 address
|
or political boundaries, it maps the country-wise allocation of the IPv4 address
|
||||||
space.
|
space.
|
||||||
|
|
||||||
Inline comments, below, are minimal — but the widget has its own "About"
|
Inline comments, below, are minimal — but the maps has its own "About"
|
||||||
section that explains how it was done.
|
section that has more information on how it was done.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -313,7 +313,7 @@ Ox.DocPanel = function(options, self) {
|
||||||
|
|
||||||
function runTests() {
|
function runTests() {
|
||||||
self.$testsButton.remove();
|
self.$testsButton.remove();
|
||||||
self.$testsStatus.html('Running tests...').show();
|
self.$testsStatus.html('Running Tests...').show();
|
||||||
Ox.load({Geo: {}, Image: {}, Unicode: {}}, function() {
|
Ox.load({Geo: {}, Image: {}, Unicode: {}}, function() {
|
||||||
Ox.test(self.options.items, function(results) {
|
Ox.test(self.options.items, function(results) {
|
||||||
results.forEach(function(result) {
|
results.forEach(function(result) {
|
||||||
|
|
Loading…
Reference in a new issue