1
0
Fork 0
forked from 0x2620/oxjs

add documentation stubs

This commit is contained in:
j 2012-05-21 12:38:18 +02:00
commit 509745407b
102 changed files with 613 additions and 163 deletions

View file

@ -1,5 +1,3 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript
'use strict';
/*@
@ -1257,6 +1255,10 @@ Ox.Calendar = function(options, self) {
}
};
/*@
that.addEvent <f> addEvent
(event) -> <o> object
@*/
that.addEvent = function(event) {
// Ox.Log('Calendar', 'CALENDAR ADD EVENT', event)
event = getEventData(event);
@ -1305,15 +1307,27 @@ Ox.Calendar = function(options, self) {
return that;
};
/*@
that.getBounds <f> get bounds
() -> <o> object
@*/
that.getBounds = function() {
return getCalendarEvent();
};
/*@
that.panToEvent <f> pan to event
() -> <o> object
@*/
that.panToEvent = function() {
panToSelected();
return that;
};
/*@
that.removeEvent <f> remvoe Event
() -> <o> object
@*/
that.removeEvent = function() {
Ox.Log('Calendar', 'REMOVE ... SELF.OPTIONS', self.options)
var index = Ox.getIndexById(self.options.events, self.options.selected);
@ -1325,6 +1339,10 @@ Ox.Calendar = function(options, self) {
return that;
};
/*@
that.resizeCalendar <f> resize
() -> <o> object
@*/
that.resizeCalendar = function() {
self.options.width = that.width();
self.options.height = that.height();
@ -1333,6 +1351,10 @@ Ox.Calendar = function(options, self) {
return that;
};
/*@
that.zoomToEvent <f> zoom to event
() -> <o> object
@*/
that.zoomToEvent = function() {
zoomToSelected();
return that;

View file

@ -1,4 +1,3 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript
'use strict';
/*@
Ox.CalendarDate <f> CalendarDate

View file

@ -1,5 +1,3 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript
'use strict';
/*@