I am currently working on an existing project which is trying to ascertain what is it.
I have this piece of code which I think is what it actually does and how a particular function is called in this class:
(Function Factation ($) {$ (function file ($ init) ($ (document) .bund ('file-delete', delete file);} Delete function file () {alert ('do something');} function CallThisFunction () {}} (jQuery);
So I'm working as above because this code was already there, but now I have to Need to call out the callTheFunction ()
to fileactions
object (this is even an object?).
I am far from a Javascript expert, as far as I can tell from Google that this is a way of subclassing, this means that I am expanding jQuery with the function in filename
Created
fileDelete
The method is simple, I can trigger an event and it will work, And yet I need this kind of functionality.
Comments
Post a Comment