Raphael: delete parent object

4 views
Skip to first unread message

Didats Triadi

unread,
Dec 15, 2010, 12:11:00 AM12/15/10
to id...@googlegroups.com
Saya lagi punya masalah sama callback dan object di raphaeljs.

var theobj = this;
this.obj.mouseover(function(event) {
delete theobj;
});

dari kode di atas, gimana caranya saya juga bisa menghapus object
"this" yang bukan lokal variabel si event mouseover?

di dokumentasi raphaeljs (http://raphaeljs.com/reference.html#events),
ada parameter optional scope.
Mungkin ada hubungannya sama ini, tapi saya gak tau gimana cara
pakenya, gak dijelasin di dokumentasinya.

Ngeliat source raphael, ternyata ilmu saya masih di pendahuluan, belum
sampe ke halaman berikutnya.


--
Didats Triadi
http://didats.net

Reply all
Reply to author
Forward
0 new messages