mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merge branch 'master' of https://github.com/jaxry/dat.gui into jaxry-master
# Conflicts: # build/dat.gui.min.js
This commit is contained in:
commit
200cf7c0ac
@ -855,7 +855,7 @@ define([
|
|||||||
var li = document.createElement('li');
|
var li = document.createElement('li');
|
||||||
if (dom) li.appendChild(dom);
|
if (dom) li.appendChild(dom);
|
||||||
if (liBefore) {
|
if (liBefore) {
|
||||||
gui.__ul.insertBefore(li, params.before);
|
gui.__ul.insertBefore(li, liBefore);
|
||||||
} else {
|
} else {
|
||||||
gui.__ul.appendChild(li);
|
gui.__ul.appendChild(li);
|
||||||
}
|
}
|
||||||
@ -873,6 +873,7 @@ define([
|
|||||||
options: function(options) {
|
options: function(options) {
|
||||||
|
|
||||||
if (arguments.length > 1) {
|
if (arguments.length > 1) {
|
||||||
|
var next_sibling = controller.__li.nextElementSibling;
|
||||||
controller.remove();
|
controller.remove();
|
||||||
|
|
||||||
return add(
|
return add(
|
||||||
@ -880,7 +881,7 @@ define([
|
|||||||
controller.object,
|
controller.object,
|
||||||
controller.property,
|
controller.property,
|
||||||
{
|
{
|
||||||
before: controller.__li.nextElementSibling,
|
before: next_sibling,
|
||||||
factoryArgs: [common.toArray(arguments)]
|
factoryArgs: [common.toArray(arguments)]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -888,6 +889,7 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (common.isArray(options) || common.isObject(options)) {
|
if (common.isArray(options) || common.isObject(options)) {
|
||||||
|
var next_sibling = controller.__li.nextElementSibling;
|
||||||
controller.remove();
|
controller.remove();
|
||||||
|
|
||||||
return add(
|
return add(
|
||||||
@ -895,7 +897,7 @@ define([
|
|||||||
controller.object,
|
controller.object,
|
||||||
controller.property,
|
controller.property,
|
||||||
{
|
{
|
||||||
before: controller.__li.nextElementSibling,
|
before: next_sibling,
|
||||||
factoryArgs: [options]
|
factoryArgs: [options]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user