[Laszlo-dev] What was the reason for setting document.onselectstart in LzInputTextSprite?
promanik at laszlosystems.com
Tue Jun 2 08:17:43 PDT 2009
This dates back to LPP-4715.
On Tue, Jun 2, 2009 at 9:57 AM , Henry Minsky wrote:
There's some code in the kernel DHTML LzInputTextSprite which globally
disables the onselectstart
// prevent text selection in IE
// can't use lz.embed.attachEventHandler because we need to cancel
document.onselectstart = LzTextSprite.prototype.__cancelhandler;
document.ondrag = LzTextSprite.prototype.__cancelhandler;
What was the need for that? Why wasn't it sufficient to rely on the
(which sets this.__LZdiv.onselectstart =
LzTextSprite.prototype.__cancelhandler )? Or was this
to fix some other issue besides toggling (input) text selectability?
hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-dev