allowed: !!toSwitch,
toggled: alreadyInTarget,
description: description,
- execute: alreadyInTarget ? function() {} : function() {
+ execute: alreadyInTarget ? function() {} : function(callback) {
f.document.transaction(function() {
if(createParams.to.tagName) {
toSwitch = toSwitch.setTag(createParams.to.tagName);
}, {
metadata: {
description: description
- }
+ },
+ success: callback
});
}
});