var value = obj.getCurrentSelection(); obj.setCurrentSelection(value); obj.onCurrentSelectionChanging = function(value){...}; obj.onCurrentSelectionChanged = function(value){...}; obj.onCurrentSelectionError = function(value){...};