question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No initialization

See original GitHub issue

Cannot initialize plugin like this way:

$('.table').each(function() {
    var table = $(this).DataTable();
    yadcf.init(table, [
        ... // column definition
    ]);
});

init function expects some defined selector, which obviously is unknown (if I dump instance.selector it’s an empty string so no initialization occurs.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vedmackcommented, Dec 3, 2018

Well apparently this issue was fixed long time ago 😃 just checked it and it works just fine, here a working jsfiddle… http://jsfiddle.net/vedmack/05dtpk1s/20/

0reactions
McNeticcommented, Jul 25, 2017

That’s not an enhancement, but a serious bug. Took me about 3-4 hours to figure this out. I have a jquery object, I assume I can apply jquery methods on it. Datatable works just fine, but yadcf fails silently, without any indication of the error. Most of the times, it’s obvious where the jquery object comes from, so (if you know you can only work on “selected” objects), you can find the error, but that’s not always the case. You should really drop any reference to the selector property…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zero-initialization - cppreference.com
Zero-initialization is performed in the following situations: 1) For every named variable with static or thread-local (since C++11) storage ...
Read more >
No "Initialization Complete" message - IBM
The FTP initialization completes when TCP/IP starts. If the background daemon job is not running, check the system console for nonzero exit codes...
Read more >
Property '...' has no initializer and is not definitely assigned in ...
Just go to tsconfig.json and set "compilerOptions": { "strictPropertyInitialization": false, ... } to get rid of the compilation error.
Read more >
Remove Zero Initialization Code - MATLAB & Simulink
Eliminating zero initialization code accelerates model initialization, reduces ROM consumption, and increases the execution speed of the generated code. During ...
Read more >
Windows PowerShell 5.1 "No initialization script available for ...
Windows PowerShell 5.1 "No initialization script available for powershell"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found