Make drag/drop save content immediately in seqs and verticals

This commit is contained in:
Calen Pennington
2012-09-27 16:15:45 -04:00
parent fd7223bd87
commit b305c0bae2
7 changed files with 27 additions and 10 deletions

View File

@@ -37,14 +37,15 @@
class @XModule.Descriptor
callbacks: []
###
Register a callback method to be called when the state of this
descriptor is updated. The callback will be passed the results
of calling the save method on this descriptor.
###
onUpdate: (callback) ->
if ! @callbacks?
@callbacks = []
@callbacks.push(callback)
###