minor update of examples
This commit is contained in:
parent
d07c8d44e3
commit
71a570a714
2 changed files with 8 additions and 8 deletions
|
@ -193,7 +193,7 @@ Ox.load(['UI', 'Geo'], function() {
|
|||
|
||||
/*
|
||||
This is our search box. To implement "find-as-you-type", we set its
|
||||
`changeOnKeypress` option to `true`. Otherwise, its change event would
|
||||
`changeOnKeypress` option to `true`. Otherwise, its `change` event would
|
||||
only fire when the user hits return.
|
||||
*/
|
||||
$find = Ox.Input({
|
||||
|
@ -338,10 +338,10 @@ Ox.load(['UI', 'Geo'], function() {
|
|||
|
||||
/*
|
||||
This function returns a query, which is an array of conditions and an
|
||||
operator. Additionally to `find`, which applies to the country's name
|
||||
operator. Additionally to `find`, which applies to the country's `'name'`
|
||||
property, we add a condition for each `include` setting that is `false`. For
|
||||
example, in order to not include dependencies, we have to add a condition
|
||||
that tests if the country's `dependency` property is `undefined`.
|
||||
that tests if the country's `'dependency'` property is `undefined`.
|
||||
*/
|
||||
function getQuery() {
|
||||
var query = {
|
||||
|
|
|
@ -6,7 +6,7 @@ coordinates.
|
|||
'use strict';
|
||||
|
||||
/*
|
||||
Include the image module.
|
||||
Include the Image module.
|
||||
*/
|
||||
Ox.load('Image', function() {
|
||||
|
||||
|
@ -15,10 +15,10 @@ Ox.load('Image', function() {
|
|||
*/
|
||||
Ox.Image('jpg/earth720.jpg', function(image) {
|
||||
|
||||
/*
|
||||
We want to map the route New York - London - Tokyo - Johannesburg -
|
||||
Sydney - Sao Paulo - New York.
|
||||
*/
|
||||
/*
|
||||
We want to map the route New York - London - Tokyo - Johannesburg -
|
||||
Sydney - Sao Paulo - New York.
|
||||
*/
|
||||
var airports = [
|
||||
{name: 'JFK', lat: 40.643841, lng: -73.782304},
|
||||
{name: 'LHR', lat: 51.480902, lng: -0.464773},
|
||||
|
|
Loading…
Reference in a new issue