Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use test #206

Open
abramhum opened this issue Sep 27, 2017 · 0 comments
Open

How to use test #206

abramhum opened this issue Sep 27, 2017 · 0 comments

Comments

@abramhum
Copy link

Hi:
I see a test file and see the jquery.treetable.test.js,
but I dowesn,t know how to use it , is there any manual for that.
And I meet a problem when tracing jquery treetable. I didn't see any jquery bind function, but when I click the arrow icon, it will invoke the method, like following:
<span class="indenter" style="padding-left: 0px;"><a href="#" title="Expanding">&nbsp;</a></span>

And I see it call the function
$.fn.treetable = function(method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { return $.error("Method " + method + " does not exist on jQuery.treetable"); } };

Could you tell me how it work and why it work this way, any instructions is highly appreciated, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant