We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
remove
init Phoenix with complex selector:
$('#form1,#form2').find('input,textarea,select').phoenix({ namespace: 'mySpace', maxItems: 250, saveInterval: 5000 });
but when I try to remove storage data it's not worked —
$('#form1,#form2').find('input,textarea,select').phoenix('remove'); // this not worked
because Phoenix tries to remove from default nameSpace phoenixStorage.
Phoenix
phoenixStorage
The text was updated successfully, but these errors were encountered:
Please, fix it.
Sorry, something went wrong.
I have the same issue - phoenix breaks when the default options are overridden. It works fine if you just use the defaults.
+1
We had the same problem and solved it (workaround?) by expanding this line:
if (typeof option === "string") { this.action = option; }
Into this:
if (typeof option === "string") { this.action = option; }else{ this.action = option.action; }
After that you need to define "action" not as string "remove", but as an object:
$(".selector").phoenix({ namespace: "test", "action": "remove" });
You can still use
$(".selector").phoenix('remove');
But that will use the default namespace (phoenixStorage).
Hope it helps...
kugaevsky
No branches or pull requests
init Phoenix with complex selector:
but when I try to remove storage data it's not worked —
because
Phoenix
tries to remove from default nameSpacephoenixStorage
.The text was updated successfully, but these errors were encountered: