Twipped / Kalendae

A javascript date picker that just works.
MIT License
1.99k stars 285 forks source link

subscribe on change, action always undefined #145

Closed gonace closed 9 years ago

gonace commented 9 years ago

Hi I'm using subscribe on change and trigger a ajax call when a range is selected (meaning when two dates is selected)

However I need to set the initial range when the page is loaded, I figured that I could use action to no trigger an ajax call when using setSelected but the "action" argument is always undefined.

So the change is triggered and the ajax call is called. Why are the action always undefined?

Twipped commented 9 years ago

Honestly, I don't know why the example in the readme shows an action argument, there's nothing in the source that could ever populate that argument and nothing in the docs to indicate what that value could hold. Perhaps that was an idea that I had explored and then changed my mind about.

I'll update the readme to remove that.