Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
ec205f09
Commit
ec205f09
authored
May 01, 2016
by
Jonathan Wilkes
Browse files
Remove debugging messages from canvas/array dialog
parent
da879b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/dialog_canvas.html
View file @
ec205f09
...
...
@@ -397,11 +397,6 @@ function attr_change(elem) {
function
array_choose
(
array_index
)
{
var
i
,
name
,
value
,
elem
,
style_index
,
style_opts
,
array_attr
=
pd_garray_attrs
[
array_index
];
for
(
name
in
array_attr
)
{
if
(
array_attr
.
hasOwnProperty
(
name
))
{
console
.
log
(
"
name is
"
+
name
);
}
}
for
(
name
in
array_attr
)
{
if
(
array_attr
.
hasOwnProperty
(
name
))
{
value
=
array_attr
[
name
];
...
...
@@ -424,7 +419,7 @@ function array_choose(array_index) {
break
;
default
:
// name, size, fill, and outline
pdgui
.
post
(
"
name is
"
+
name
);
//
pdgui.post("name is " + name);
elem
=
document
.
getElementsByName
(
name
)[
0
];
elem
.
value
=
value
;
break
;
...
...
@@ -649,11 +644,6 @@ function register_window_id(gfxstub, attr_objects) {
var
canvas_fieldsets
,
i
,
prop
;
// attr_objects[0]: canvas properties
// attr_objects[1...n-1]: array properties
for
(
prop
in
attr_objects
[
0
])
{
if
(
attr_objects
[
0
].
hasOwnProperty
(
prop
))
{
pdgui
.
post
(
prop
+
"
:
"
+
attr_objects
[
0
][
prop
]);
}
}
add_events
(
gfxstub
);
// not sure that we need this for properties windows...
// pdgui.canvas_map(gfxstub);
...
...
@@ -708,14 +698,10 @@ function populate_form(attr_object) {
// Unhide the span with the class with the same name as the id
var
prop_group
=
document
.
getElementsByClassName
(
prop
)[
0
];
if
(
prop_group
!==
undefined
)
{
console
.
log
(
"
the thing here is
"
+
prop
);
prop_group
.
classList
.
remove
(
"
hidden
"
);
}
else
{
pdgui
.
post
(
"
Error: couldn't find iemgui prop group for
"
+
prop
);
}
if
(
prop
===
"
display-flags
"
)
{
//
protip
: "!!" forces Boolean, "+" forces Number type
//
reminder
: "!!" forces Boolean, "+" forces Number type
var
flag
=
+
attr_object
[
prop
];
document
.
getElementsByName
(
"
gop
"
)[
0
].
checked
=
!!
flag
;
document
.
getElementsByName
(
"
hide-name
"
)[
0
].
checked
=
!!
(
flag
&
2
);
...
...
@@ -734,7 +720,6 @@ function populate_form(attr_object) {
}
else
if
(
elem
[
0
].
type
===
"
checkbox
"
)
{
// The attr here is a string, so we need to
// force it to number, hence the "+" below
pdgui
.
post
(
"
found a CHECKED ITEM!!!
"
);
elem
[
0
].
checked
=
+
attr_object
[
prop
];
}
else
{
elem
[
0
].
value
=
attr_object
[
prop
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment