Skip to content

Instantly share code, notes, and snippets.

@steida
Created May 13, 2009 16:28
Show Gist options
  • Save steida/111110 to your computer and use it in GitHub Desktop.
Save steida/111110 to your computer and use it in GitHub Desktop.
unselectable: {
set: function(value) {
Browser.Engine.gecko && (this.style.MozUserSelect = value ? 'none' : 'text') ||
Browser.Engine.webkit && (this.style.KhtmlUserSelect = value ? 'none' : 'text') ||
(Browser.Engine.trident || Browser.Engine.opera) && (this.unselectable = value ? 'on' : 'off');
this.getChildren('*').set('unselectable', value);
return this;
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment