the first lines if(typeof parent === 'string'){ immediately changes the variable parent to an object so that the comparison if(parent == 'tab') never get's executed. Executing K({…}).open('tab'); in the code alwys opens the new window in the first tab since the selector engines returns all tabs and the code only takes the first it finds.
Hi Jacob,
i just tried to open up a window in a new Tab, which didn't work out: Problem were the following lines in the open-function on line 646 in kranium.js:
the first lines
if(typeof parent === 'string'){
immediately changes the variable parent to an object so that the comparisonif(parent == 'tab')
never get's executed. ExecutingK({…}).open('tab');
in the code alwys opens the new window in the first tab since the selector engines returns all tabs and the code only takes the first it finds.