Friday 15 March 2013

javascript - jquery classes and subclassing -



javascript - jquery classes and subclassing -

i'm working on existing project trying figure out what.

i have piece of code i'm wondering , how phone call specific function in class:

(function fileactions($) { $(function init() { $(document).bind('file-delete', filedelete); } function filedelete() { alert('do something'); } function callthisfunction() {} })(jquery);

so i've been working above code there, need phone call function callthisfunction() outside fileactions object (is object?).

i'm far javascript expert, far tell google way of subclassing?, mean i'm extending jquery function created in fileactions?

the filedelete method simple, can trigger event , it'll work, , far i've needed functionality that.

javascript jquery object

No comments:

Post a Comment