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

v0.2 #8

Merged
merged 8 commits into from Mar 20, 2021
Merged

v0.2 #8

merged 8 commits into from Mar 20, 2021

Conversation

DiriectorDoc
Copy link
Owner

@DiriectorDoc DiriectorDoc commented Mar 16, 2021

v0.2

Since I started developing jQlipboard, I have been trying to implement the features I visioned and working out the kinks. jQlipboard has reached the next stage of development; v0.2. While this won't change much on the technical side, I feel it is necessary given how far it has come. This may sound cheesy, but I am proud of this little extension.

On a similar note, the withPaste version of jQlipboard version will be known as w0.2 with a W instead of a V.

Changes

All versions

  • The $.jQlipboard.version version now has its version type prefixed before it (v for standard and w for withPaste)
  • Made it so when using $.fn.select on a <textarea> or <input> field, it actually performs the intended action, as opposed to what it was doing before, which I have no idea where I got that code
  • Replaced "static" functions with an arrow function because they do not use this it they take up less space
  • When manually setting the user-select CSS in a dynamically created element, setting that value to "auto" does nothing. This setting has been changed to "text" so it should work properly. I doubt anyone had a problem with it yet, but I'm glad I caught it before it became one.
  • Linked the full documentation page at the top of the README
  • Changed the installation code in the README to provide a static link rather than a GitHub raw link, which could change at any time
  • No longer use a try{}catch(e){} statement to check for jQluer in the minified version
  • Replaced custom function that checks an elements tagNames with a more concise method (actual jQuery)

Startard version

  • After the shift to two separate versions, I forgot to test the standard version. Simply assigning $.jQlipboard.version a value will throw an error because $.jQlipboard is undefined whereas in withPaste it is not. This was fixed.

withPaste

  • Removed the need to initialize jQlipboard to use paste. The way I see it, if you don't want to have the pasting function, don't use the withPaste version.
    • Consequently, the warning you get when pasting is off will no longer appear

@DiriectorDoc DiriectorDoc merged commit c0d2a5c into master Mar 20, 2021
@DiriectorDoc DiriectorDoc deleted the v0.2 branch March 20, 2021 05:14
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

Successfully merging this pull request may close these issues.

None yet

1 participant