Menu

#150 MouseEvent/DragEvent/Core API fixes

open
nobody
5
2003-02-25
2003-02-25
No

[*] modify documentation and examples
[+] add _hasDragEvents to Event Object
[-] fix setZIndex({topmost:true}) - Wasn't setting layers
as topmost
[-] fix #15 for ie,moz,opera (except ns4)
[-] fix form elements inside drag-enabled layers #08
(Thanks to Beniot)
[*] rename some files in examples to follow dynapi.
naming convention
[*] move images found in ext into ext/images
> image files used by dynapi.gui widgets
should be stored here
[+] add setTextSelectable to dynapi.document
[-] fix image dragging in opera,ie and gecko browser
> this code block did the trick
// prevent image dragging
if(tn=='img' && typeof
(target.onmousedown)!="function") {

target.onmousedown=dynapi.functions.False;
    \}

[+] add ondrop & ondragover events to dragevents.js
[+] add dynapi.functions.removeFromObject:

Note: Opera v7 build 2577 does not honor the delete
javascript command:
var o={
name:'DynAPI User',
id:'1202330'
}
delete o["name"];
alert(o["name"]); //displays DynAPI User

a quick workaround was to add the following

to dynapi.functions (in dynapi.js)

removeFromObject : function\(object, id\) \{
    if\(\!dynapi.ua.opera\) delete object

[id];
else {
var o={};
for (var i in object) if(id!
=i) o[i]=object[i];
object=o;
}
return object;
}

now this should work:

o=dynapi.functions.removeFromObject

(o,"name");
alert(o["name"]);

--
PS. Changes inside CVS

Discussion


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.