minor fixes and documentation updates

This commit is contained in:
rolux 2012-04-09 10:42:00 +02:00
parent baf0f72912
commit ebc6efffb4
11 changed files with 15 additions and 6 deletions

View file

@ -6,6 +6,8 @@
Ox.ListCalendar <f> ListCalendar object Ox.ListCalendar <f> ListCalendar object
@*/ @*/
// FIXME: should be Ox.CalendarEditor
Ox.ListCalendar = function(options, self) { Ox.ListCalendar = function(options, self) {
self = self || {}; self = self || {};

View file

@ -5,6 +5,7 @@ Ox.ExamplePanel = function(options, self) {
self = self || {}; self = self || {};
var that = Ox.Element({}, self) var that = Ox.Element({}, self)
.defaults({ .defaults({
element: '',
examples: [], examples: [],
keywords: null, keywords: null,
path: '', path: '',
@ -16,7 +17,7 @@ Ox.ExamplePanel = function(options, self) {
.options(options || {}) .options(options || {})
self.$list = Ox.Element(); self.$list = Ox.Element();
self.$page = Ox.Element(); self.$page = Ox.Element().append(self.options.element);
that.setElement( that.setElement(
self.$panel = Ox.SplitPanel({ self.$panel = Ox.SplitPanel({

View file

@ -17,6 +17,8 @@ Ox.ListMap <f:Ox.Element> ListMap object
self <o> Shared private variable self <o> Shared private variable
@*/ @*/
// FIXME: Should be Ox.MapEditor
Ox.ListMap = function(options, self) { Ox.ListMap = function(options, self) {
self = self || {}; self = self || {};

View file

@ -228,7 +228,7 @@ Document
//background: rgb(255, 255, 255); //background: rgb(255, 255, 255);
} }
.OxThemeClassic .OxDocument div { .OxThemeClassic .OxDocument div {
border-color: rgb(192, 192, 192); border-color: rgb(208, 208, 208);
} }
/* /*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

View file

@ -123,10 +123,13 @@ Ox.load = function() {
/*@ /*@
Ox.localStorage <o> localStorage wrapper Ox.localStorage <o> localStorage wrapper
() -> <o> key:value pairs (namespace) -> <f> localStorage object for a given namespace
(key) -> <*> value FIXME: there is a bug in Ox.doc here,
(key, val) -> <f> localStorage object will use "(namespace)" as function name
({key, val}) -> <f> localStorage object () -> <o> returns all key:value pairs
(key) -> <*> returns one value
(key, val) -> <f> sets one value, returns localStorage object
({key: val, ...}) -> <f> sets values, returns localStorage object
@*/ @*/
Ox.localStorage = function(namespace) { Ox.localStorage = function(namespace) {
if (!window.localStorage) { if (!window.localStorage) {
@ -161,6 +164,7 @@ Ox.localStorage = function(namespace) {
keys.forEach(function(key) { keys.forEach(function(key) {
delete localStorage[namespace + '.' + key]; delete localStorage[namespace + '.' + key];
}); });
return storage;
}; };
return storage; return storage;
}; };