* @class elFinder command "fullscreen"
* elFinder node to full scrren mode
elFinder.prototype.commands.fullscreen = function() {
update = function(e, data) {
if (data && data.fullscreen) {
full = (data.fullscreen === 'on');
self.update(void(0), full);
self.title = fm.i18n(full ? 'reinstate' : 'cmdfullscreen');
this.alwaysEnabled = true;
this.updateOnSelect = false;
this.syncTitleOnChange = true;
this.getstate = function() {
var node = fm.getUI().get(0),
full = (node === fm.toggleFullscreen(node));
self.title = fm.i18n(full ? 'reinstate' : 'cmdfullscreen');
self.update(void(0), full);
return $.Deferred().resolve();
fm.bind('init', function() {
fm.getUI().off('resize.' + fm.namespace, update).on('resize.' + fm.namespace, update);