**** BEGIN LOGGING AT Thu Jan 22 02:59:59 2015 Jan 22 05:01:39 sugardave, it turns out that the Signals property I for postMessage is onmessage. Jan 22 05:02:40 Perhaps because the MessageEvent has the type message Jan 22 05:16:17 DougReeder: ah, interesting Jan 22 05:16:31 usually its onwhateverEvent for whateverEvent Jan 22 05:20:39 * DougReeder nods Jan 22 19:27:35 In the community Gallary, there is tagInput. Does anyone know how I would empty a tag field? The problem I'm having is that each tag is just created as an unnamed, anonymous sub control. Jan 22 19:28:57 .crickets. Jan 22 19:29:13 Even the crickets have nothing to say Jan 22 19:31:05 trex005: what do you mean by empty it? Jan 22 19:31:49 trex005: Tell us what you're REALLY trying to do. http://mywiki.wooledge.org/XyProblem Jan 22 19:31:51 As in, it is full of selected tags, and I want to reset it to blank Jan 22 19:32:21 And the selected tags get created as components? Jan 22 19:33:07 the tags are tracked as an array, but visibly displayed as components that when clicked remove themselves. Jan 22 19:39:23 trex005: they all have the class extras-item Jan 22 19:40:04 So, loop through all the sub components and find any with that class and remove them? Jan 22 19:40:29 yea, you could use enyo.filter to do it Jan 22 19:40:49 just give it a function that returns true if the component has the class extras-item Jan 22 19:40:57 I'm sorry, but I don't know how to use filter. Would you be willing to give me a brief 101? Jan 22 19:41:03 sure Jan 22 19:42:30 enyo.filter(Array arr, Function func, This this); Jan 22 19:42:44 arr is the input array Jan 22 19:42:54 func will get executed on each element in the array Jan 22 19:43:14 if func returns true, the value will be included in the array that enyo.filter returns Jan 22 19:43:19 if it returns false, it will not Jan 22 19:43:30 and this is only needed if you need this Jan 22 19:43:43 so it's like binding? Jan 22 19:44:10 so, could arr be this.$ ? Jan 22 19:44:13 not really Jan 22 19:44:27 arr should be this.getComponents() Jan 22 19:44:34 or this.getClientControls() Jan 22 19:49:24 okay, I'll try it out. I might end up submitting a patch with an empty() or reset() function. Jan 22 19:50:17 cool Jan 22 19:50:18 I should probably add a function to remove a tag by string too Jan 22 19:51:02 would you use empty(), reset(), destroyAll() or something else? Jan 22 19:51:17 clear() Jan 22 19:51:54 probably reset() Jan 22 19:52:23 empty() is sometimes used in some paradigms as a check whether a collection is empty Jan 22 19:52:52 thanks Jan 22 20:12:54 worked like a charm. Now to do a pull request Jan 22 20:13:04 yw Jan 22 20:13:25 I did code like that all the time at my old job Jan 22 20:14:07 I had a form that I needed to be able to disable the whole thing, so I gave all the form elements a class form-element which I used to filter them so that I could do mass enables, disables, and set/GetValues Jan 22 20:14:30 good thinking :) Jan 22 21:18:26 Alright, I have another TagInput problem. If I programmatically add an item using .addItem() before anyone interacts with the field, it says that inputField (which is the input field added via components) does not exist. However, if anyone has typed in the field, and I add an item programmatically at all, it works. It seems that this is because input(source,event) has not been fired on the parent object (which inherits from AutoCompl Jan 22 21:20:01 Alright, I have another TagInput problem. If I programmatically add an item using .addItem() before anyone interacts with the field, it says that inputField (which is the input field added via components) does not exist. However, if anyone has typed in the field, and I add an item programmatically at all, it works. Jan 22 21:20:02 It seems that this is because input(source,event) has not been fired on the parent object (which inherits from AutoCompleteInputDecorator), but I don't see how that is fired in the first place, let alone how to fire it programmatically, if that is what I need to do. Jan 22 21:23:19 Or, to prevent the xy problem :) I'm trying to autopopulate the TagInput using .addItem() which fails if no one has typed in the TabInput's input field yet. Jan 22 21:23:48 TabInput = TagInput Jan 22 21:28:31 I'm able to workaround the problem by manually setting TagItem.inputField to the input I created, but that seems to be a messy workaround. (though good enough for me I suppose) **** ENDING LOGGING AT Fri Jan 23 02:59:59 2015