Ticket #6212 (new defect)
Cannot define ItemFileWriteStore._saveCustom with dojo/method SCRIPT tag
| Reported by: | ptwobrussell | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4 |
| Component: | Core | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: | ptwobrussell@… |
Description
I noticed tonight (r13076) that doing something like
<div dojoType="dojo.data.ItemFileWriteStore" url="/foobar" jsId="fooStore">
<script type="dojo/method" event="_saveCustom" args="saveCompleteCallback, saveFailedCallback">
alert("foobar!!!");
</script>
</div>
doesn't actually do anything. After you supposedly wire it up, you can go into Firebug and execute fooStore._saveCustom and you won't get anything back. However, if you rig that same thing up in dojoAddOnLoad by directly assigning an anonymous functionto fooStore._saveCustom, then all is well (obviously.)
The only telling sign I noticed is that _saveCustom isn't explicitly defined in ItemFileWriteStore?...but I thought that the dojo/method scripts should have worked anyway....so I'll log this as a Core problem (?)
Change History
Note: See
TracTickets for help on using
tickets.