jsoverson / grunt-open

Open urls and files from a grunt task
MIT License
110 stars 19 forks source link

Open only once #29

Open idpaterson opened 9 years ago

idpaterson commented 9 years ago

If the event is fired multiple times, do not continue to open the page. Requires the open task to be run again in order to open again.

This may be a breaking change for anyone using openOn with the expectation that it continues firing every time the event occurs. Please let me know if you would prefer to retain the behavior of openOn but add openOnce or openOnceOn as well. I think that is a bit confusing but it would avoid breaking anything that was depending on the event listening and firing throughout the life of the grunt task. My suspicion is that this is more often an undiscovered side-effect than an expected behavior.

If you could let me know your preference regarding the implementation, I would also like to clarify this matter in the documentation in this pull request.