1
0
Fork 0
forked from 0x2620/oxjs

various improvements in OxJS and OxUI

This commit is contained in:
rolux 2011-04-29 14:40:51 +02:00
commit 7380595c7e
48 changed files with 184 additions and 161 deletions

View file

@ -2,7 +2,7 @@
Ox.ListMap = function(options, self) {
var self = self || {},
that = new Ox.Element('div', self)
that = new Ox.Element({}, self)
.defaults({
addPlace: null,
height: 256,
@ -336,7 +336,7 @@ Ox.ListMap = function(options, self) {
return val.toFixed(8);
}
self.onChange = function(key, value) {
self.setOption = function(key, value) {
Ox.print('ONCHANGE')
if (key == 'height' || key == 'width') {
Ox.print('ONCHANGE...')

View file

@ -3,7 +3,7 @@
Ox.Map = function(options, self) {
self = self || {};
var that = new Ox.Element('div', self)
var that = new Ox.Element({}, self)
.defaults({
// fixme: isClickable? hasZoombar?
clickable: false,
@ -131,7 +131,7 @@ Ox.Map = function(options, self) {
.appendTo(self.$toolbar)
}
self.$map = new Ox.Element('div')
self.$map = new Ox.Element({})
.css({
left: 0,
top: self.options.toolbar * 24 + 'px',
@ -847,7 +847,7 @@ Ox.Map = function(options, self) {
}
}
self.onChange = function(key, value) {
self.setOption = function(key, value) {
/*if (key == 'height' || key == 'width') {
resizeMap();
} else */if (key == 'places') {

View file

@ -11,7 +11,7 @@ Ox.MapImage = function(options, self) {
*/
var self = self || {},
that = new Ox.Element('img', self)
that = new Ox.Element('<img>', self)
.defaults({
height: 360,
markerColorHighlight: 'yellow',
@ -59,7 +59,7 @@ Ox.MapImage = function(options, self) {
src: self.src
});
self.onChange = function(key, value) {
self.setOption = function(key, value) {
};