Menu

#191 Bug in dragevent.js

open-fixed
nobody
5
2001-11-13
2001-11-13
No

DynAPI 2.5.6, IE 5.5.

When doing DragEvent.enableDragEvents() on a layer
which hasn't been created yet, you get the following
error:

Line: 144
Char: 2
Error: 'frame.lyrobj' is null or not an object

This is in dragevent.js

Discussion

  • Richard Bennett

    Richard Bennett - 2001-11-13

    Logged In: YES
    user_id=164855

    This has been fixed.
    Please download the latest snapshot, and try it again:
    http://dynapi.sourceforge.net/snapshot/

    I'll leave this bug open for a few days so others see it
    too.

    Richard Bennett

     
  • Richard Bennett

    Richard Bennett - 2001-11-13
    • status: open --> open-fixed
     
  • Nobody/Anonymous

    Logged In: NO

    add it to a parent object immediately after creating it.
    Then the layer can exist before you move it.

    myLayer=new DynLayer(null,100,100,100,100,'#c0c0c0')
    DynAPI.document.addChild(myLayer)
    DragEvent.setDragBoundary(myLayer)
    DragEvent.enableDragEvents(myLayer)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.