Meteor-Community-Packages / meteor-autoform-bs-datepicker

Custom "bootstrap-datepicker" input type for AutoForm
MIT License
25 stars 32 forks source link

Uncaught TypeError: Cannot read property 'apply' of undefined (jquerry ui) #33

Closed isAlmogK closed 7 years ago

isAlmogK commented 9 years ago

I'm getting the following error Uncaught TypeError: Cannot read property 'apply' of undefined when I added the auto bs datepicker to my form

Uncaught TypeError: Cannot read property 'apply' of undefined(anonymous function)

@ 002_jquery-ui.js?3263b98139357411b9f09f373940ee92f4fb6e7b:10049n.extend.each @ 001_jquery-2.1.4.min.js?43dc554608df885a59ddeece1598c6ace434d747:2n.fn.n.each @ 001_jquery-2.1.4.min.js?43dc554608df885a59ddeece1598c6ace434d747:2$.fn.datepicker @ 002_jquery-ui.js?3263b98139357411b9f09f373940ee92f4fb6e7b:10046AutoForm.addInputType.valueOut @ autoform-bs-datepicker.js:7autoFormGetInputValue @ autoform-api.js:514(anonymous function) @ autoform-inputs.js:6jQuery.extend.each @ jquery.js:384jQuery.fn.jQuery.each @ jquery.js:136getFlatDocOfFieldValues @ autoform-inputs.js:5autoFormGetFormValues @ autoform-api.js:311autoFormSubmitHandler @ autoform-events.js:165(anonymous function) @ template.js:463Template._withTemplateInstanceFunc @ template.js:437(anonymous function) @ template.js:462(anonymous function) @ view.js:869Blaze._withCurrentView @ view.js:523(anonymous function) @ view.js:868(anonymous function) @ events.js:47jQuery.event.dispatch @ jquery.js:4665jQuery.event.add.elemData.handle @ jquery.js:4333

mbabauer commented 9 years ago

I am having a similar issue:

Exception from Tracker afterFlush function:
debug.js:41 TypeError: Cannot read property 'apply' of undefined
    at HTMLInputElement.<anonymous> (jquery-ui.js:5814)
    at Function.jQuery.extend.each (jquery.js:384)
    at [object Object].jQuery.fn.jQuery.each (jquery.js:136)
    at [object Object].$.fn.datepicker (jquery-ui.js:5812)
    at [object Object].<anonymous> (autoform-bs-datepicker.js:62)
    at view.js:191
    at Function.Template._withTemplateInstanceFunc (template.js:437)
    at view.js:190
    at Object.Blaze._withCurrentView (view.js:523)
    at viewAutorun (view.js:189)

For reference, my package:

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-platform

# Testing Frameworks
#sanjo:jasmine
xolvio:cucumber
velocity:html-reporter
velocity:console-reporter

# Dev tools
constellation:console
babrahams:temple
constellation:session
constellation:subscriptions
constellation:velocity
msavin:mongol
msavin:jetsetter

# Monitoring tools
#meteorhacks:kadira
#kadira:debug

# Core utility packages
spacebars
email
reactive-var
reactive-dict
manuel:reactivearray
lauricio:less-autoprefixer
jquery

# Security packages
accounts-password
#accounts-google
#accounts-twitter
#accounts-facebook
alanning:roles
ian:accounts-ui-bootstrap-3
force-ssl

# General Utils
aldeed:collection2
#percolatestudio:synced-cron
#jaywon:meteor-node-uuid
flyandi:is
meteorhacks:aggregate
cfs:standard-packages
cfs:filesystem

# Routing/templating packages
kadira:flow-router
kadira:blaze-layout
meteorhacks:fast-render
arillo:flow-router-helpers

# UI-helper packages
twbs:bootstrap
rajit:bootstrap3-datepicker
tsega:bootstrap3-floating-labels
momentjs:moment
natestrauser:font-awesome
juliancwirko:s-alert
linto:jquery-ui
aldeed:autoform
aldeed:autoform-bs-datepicker
aldeed:autoform-select2
aldeed:autoform-bs-button-group-input
cfs:autoform
cfs:graphicsmagick

And my versions:

accounts-base@1.2.0
accounts-password@1.1.1
alanning:roles@1.2.13
aldeed:autoform@5.5.0
aldeed:autoform-bs-button-group-input@1.0.2
aldeed:autoform-bs-datepicker@1.1.1
aldeed:autoform-select2@2.0.2
aldeed:collection2@2.5.0
aldeed:simple-schema@1.3.3
aldeed:template-extension@3.4.3
amplify@1.0.0
anti:i18n@0.4.3
arillo:flow-router-helpers@0.4.5
autoupdate@1.2.1
babrahams:editable-json@0.6.0
babrahams:temple@0.3.2
base64@1.0.3
binary-heap@1.0.3
blaze@2.1.2
blaze-tools@1.0.3
boilerplate-generator@1.0.3
callback-hook@1.0.3
cfs:access-point@0.1.49
cfs:autoform@2.2.1
cfs:base-package@0.0.30
cfs:collection@0.5.5
cfs:collection-filters@0.2.4
cfs:data-man@0.0.6
cfs:file@0.1.17
cfs:filesystem@0.1.2
cfs:graphicsmagick@0.0.18
cfs:http-methods@0.0.30
cfs:http-publish@0.0.13
cfs:power-queue@0.9.11
cfs:reactive-list@0.0.9
cfs:reactive-property@0.0.4
cfs:standard-packages@0.5.9
cfs:storage-adapter@0.2.2
cfs:tempstore@0.1.5
cfs:upload-http@0.0.20
cfs:worker@0.1.4
check@1.0.5
chuangbo:cookie@1.1.0
coffeescript@1.0.6
constellation:console@1.2.1
constellation:session@0.3.2
constellation:subscriptions@0.3.1
constellation:velocity@0.3.1
cosmos:browserify@0.5.1
dburles:mongo-collection-instances@0.3.4
ddp@1.1.0
deps@1.0.7
ejson@1.0.6
email@1.0.6
fastclick@1.0.3
flyandi:is@1.0.2
force-ssl@1.0.4
geojson-utils@1.0.3
grigio:babel@0.1.7
gwendall:body-events@0.1.6
gwendall:session-json@0.1.7
html-tools@1.0.4
htmljs@1.0.4
http@1.1.0
ian:accounts-ui-bootstrap-3@1.2.79
id-map@1.0.3
jquery@1.11.3_2
json@1.0.3
juliancwirko:s-alert@3.1.0
kadira:blaze-layout@2.1.0
kadira:flow-router@2.6.0
lai:collection-extensions@0.1.4
launch-screen@1.0.2
lauricio:less-autoprefixer@1.0.15
less@1.0.14
linto:jquery-ui@1.11.2
livedata@1.0.13
localstorage@1.0.3
logging@1.0.7
manuel:reactivearray@1.0.5
meteor@1.1.6
meteor-platform@1.2.2
meteorhacks:aggregate@1.3.0
meteorhacks:collection-utils@1.2.0
meteorhacks:fast-render@2.10.0
meteorhacks:inject-data@1.4.1
meteorhacks:picker@1.0.3
meteortoys:toykit@0.8.7
minifiers@1.1.5
minimongo@1.0.8
mobile-status-bar@1.0.3
momentjs:moment@2.10.6
mongo@1.1.0
mongo-livedata@1.0.8
msavin:jetsetter@1.0.20
msavin:mongol@1.1.5
natestrauser:font-awesome@4.4.0
npm-bcrypt@0.7.8_2
observe-sequence@1.0.6
ordered-dict@1.0.3
package-version-parser@3.0.3
practicalmeteor:chai@1.9.2_3
practicalmeteor:loglevel@1.1.0_3
raix:eventemitter@0.1.3
raix:ui-dropped-event@0.0.7
rajit:bootstrap3-datepicker@1.4.1
random@1.0.3
reactive-dict@1.1.0
reactive-var@1.0.5
reload@1.1.3
retry@1.0.3
routepolicy@1.0.5
sanjo:long-running-child-process@1.1.3
sanjo:meteor-files-helpers@1.1.0_7
sanjo:meteor-version@1.0.0
service-configuration@1.0.4
session@1.1.0
sha@1.0.3
simple:json-routes@1.0.4
spacebars@1.0.6
spacebars-compiler@1.0.6
srp@1.0.3
stylus@1.0.7
templating@1.1.1
tracker@1.0.7
tsega:bootstrap3-floating-labels@3.1.0_1
twbs:bootstrap@3.3.5
ui@1.0.6
underscore@1.0.3
url@1.0.4
velocity:chokidar@1.0.3_1
velocity:console-reporter@0.1.3
velocity:core@0.9.3
velocity:html-reporter@0.8.2
velocity:meteor-internals@1.1.0_7
velocity:shim@0.1.0
velocity:source-map-support@0.3.2_1
webapp@1.2.0
webapp-hashing@1.0.3
xolvio:cucumber@0.13.8
zimme:active-route@2.3.2
aldeed commented 7 years ago

Closing old issues. Can be reopened if it's still an issue in the latest release.