forked from 0x2620/oxjs
make in/out markers on timeline display correctly
This commit is contained in:
parent
8349b50536
commit
049c0be790
2 changed files with 21 additions and 23 deletions
|
|
@ -1051,18 +1051,7 @@ requires
|
|||
self.options = $.extend(self.options || self.defaults, args);
|
||||
$.each(args, function(key, value) {
|
||||
// key == 'id' && id && Ox.Event.changeId(id, value);
|
||||
value !== oldOptions[key] && self.onChange(key, value);
|
||||
/*
|
||||
fixme: why does this not work?
|
||||
Ox.print('options', options, key, value)
|
||||
//Ox.print(!options, !options || !options[key], !options || !options[key] || options[key] !== value)
|
||||
if (!options || !options[key] || options[key] !== value) {
|
||||
Ox.print('onChange...')
|
||||
self.onChange(key, value);
|
||||
} else {
|
||||
Ox.print('NO CHANGE');
|
||||
}
|
||||
*/
|
||||
/*!Ox.equals(value, oldOptions[key]) &&*/ self.onChange(key, value);
|
||||
});
|
||||
ret = that;
|
||||
}
|
||||
|
|
@ -9801,7 +9790,9 @@ requires
|
|||
}
|
||||
|
||||
self.onChange = function(key, value) {
|
||||
Ox.print('onChange:', key, value)
|
||||
if (key == 'points') {
|
||||
Ox.print('key', key, 'value', value)
|
||||
setMarkerPoint(0);
|
||||
setMarkerPoint(1);
|
||||
} else if (key == 'position') {
|
||||
|
|
@ -10182,6 +10173,7 @@ requires
|
|||
});
|
||||
});
|
||||
$.each(self.$timeline, function(i, v) {
|
||||
Ox.print('points:', self.options.points)
|
||||
v.options({
|
||||
points: self.options.points
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue