You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously this is not ideal as I have had to take the code out of NPM management to prevent it being overwritten on update. Is there a better way to handle this?
The text was updated successfully, but these errors were encountered:
I can confirm that the above workaround also works for a similar case: I was using this Plugin in combination with requireJS where the key to the jquery library was set to 'jquery' and exported in a shim to '$'. The case I required was the first one since requireJS is using the AMD pattern which relies on 'define'.
Related to #1761 but that hasn't been touched since Nov 2016...
When using Browserify to bundle my code the
datepicker()
function does not attach to the globaljQuery
object.I believe this is due to the way that datepicker implements the factory function:
As a workaround I have edited line 11 to attempt to use window.jQuery, falling back to
require('jQuery')
if it is not found:Obviously this is not ideal as I have had to take the code out of NPM management to prevent it being overwritten on update. Is there a better way to handle this?
The text was updated successfully, but these errors were encountered: