forked from 0x2620/oxjs
cleanup docs, fix children/find calls
This commit is contained in:
parent
a98902f165
commit
b9e80c9d75
88 changed files with 157 additions and 253 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue