1
0
Fork 0
forked from 0x2620/oxjs

cleanup docs, fix children/find calls

This commit is contained in:
j 2012-05-22 15:14:40 +02:00
commit b9e80c9d75
88 changed files with 157 additions and 253 deletions

View file

@ -2,9 +2,7 @@
/*@
Ox.ListMap <f:Ox.Element> ListMap object
() -> <f> ListMap object
(options) -> <f> ListMap object
(options, self) -> <f> ListMap object
([options[, self]]) -> <o> ListMap object
options <o> Options object
height <n|256> Height in px
labels <b|false> If true, show labels

View file

@ -1,15 +1,13 @@
'use strict';
/*@
Ox.Map <function> Basic map object
Ox.Map <f:Ox.Element> Basic map object
# DESCRIPTION --------------------------------------------------------------
<code>Ox.Map</code> is a wrapper around the
<a href="http://code.google.com/apis/maps/documentation/javascript/">Google
Maps API</a>.
# USAGE --------------------------------------------------------------------
() -> <f> Map object
(options) -> <f> Map object
(options, self) -> <f> Map object
([options[, self]]) -> <o> Map object
# ARGUMENTS ----------------------------------------------------------------
options <o|{}> options
clickable <b|false> If true, clicking on the map finds a place
@ -1199,7 +1197,7 @@ Ox.Map = function(options, self) {
};
function setPlaceControls(place) {
var $placeControls = that.$element.find('.OxPlaceControl'),
var $placeControls = that.find('.OxPlaceControl'),
country,
isVisible = self.$placeControls.name.is(':visible');
if (place) {
@ -1299,8 +1297,7 @@ Ox.Map = function(options, self) {
}
function toggleControls() {
// fixme: that.find() doesn't work here
var $controls = that.$element.find('.OxMapControl');
var $controls = that.find('.OxMapControl');
self.options.showControls = !self.options.showControls;
if (self.options.showControls) {
$controls.show().animate({opacity: 1}, 250);

View file

@ -2,9 +2,7 @@
/*@
Ox.MapImage <f:Ox.Element> MapImage Object
() -> <f> MapImage Object
(options) -> <f> MapImage Object
(options, self) -> <f> MapImage Object
([options[, self]]) -> <o> MapImage Object
options <o> Options object
height <n|360> image height (px)
place <o|null> Object with south, west, north and east properties

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.MapMarkerImage <f:google.maps.MarkerImage> MapMarkerImage Object
(options) -> <f> google.maps.MarkerImage
Ox.MapMarkerImage <f> MapMarkerImage Object
(options) -> <o> google.maps.MarkerImage
options <o> Options object
color <a|[255, 0, 0]> marker color
mode <s|normal> can be: normal, selected, editing

View file

@ -2,9 +2,7 @@
/*@
Ox.MapRectangle <f> MapRectangle Object
() -> <f> MapRectangle Object
(options) -> <f> MapRectangle Object
(options, self) -> <f> MapRectangle Object
([options[, self]]) -> <f> MapRectangle Object
options <o> Options object
map <o|null> map
place <o|null> place

View file

@ -2,9 +2,7 @@
/*@
Ox.MapRectangleMarker <f> MapRectangleMarker Object
() -> <f> MapRectangleMarker Object
(options) -> <f> MapRectangleMarker Object
(options, self) -> <f> MapRectangleMarker Object
([options[, self]]) -> <o> MapRectangleMarker Object
options <o> Options object
map <o|null> map
place <o|null> place