Nevertheless I tool the liberty to revise the JavaScript generated by
the widget.php. I also took the liberty to implement the 'Attempt to
auto-load jQuery, then relaunch the widget when jQuery is available' todo.
The outcome of my short session can be seen in my github clone of joind.in:
https://github.com/lapistano/joind.in/commit/48687420733e0900fe8a836d350049ac16c2210a
Tell me, if you are interested in a pull request.
hf
Bastian
PS: I used jsLint to check the JavaScript code, but actual never run
the code through a JavaScript interpretor. So it is possible that there
are some errors jsLint did not find.
I understand your intention not to force people to use whatever library
or framework, but - sorry for the comparison - we are not google to
implement each and everything on our own ;)
My idea of the widgets is that there should be a tiny core just managing
attached modules. Talking via custom events to each other we would be
able to extend, rewrite, or upgrade any module without braking backward
compatibility in general.
just my 5 cents
Bastian
On 08/25/2011 11:37 PM, Jake Smith wrote:
> Bastian and others,
>
> Please review my amended changes to widget.php. I removed the
> dependencies of jQuery all together. Even though I agree jQuery is
> quite popular, I also use it on most sites, but I do not believe it
> should be required when loading a widget from another site.
>
> Any feedback would be appreciated:
> https://github.com/jakefolio/joind.in/blob/widget-js/src/widget/widget.php
>
> Jake Smith
> [t] @jakefolio
> [w] www.jakefolio.com <http://www.jakefolio.com>
>
>
> On Thu, Aug 25, 2011 at 4:25 PM, Bastian Feder <bastia...@gmail.com
> <mailto:bastia...@gmail.com>> wrote:
>
> Hi Folks,
> Lorna contacted me today with some feedback about the joindin widgets.
> It seems that the development on these have gone further a bit.
>
> Nevertheless I tool the liberty to revise the JavaScript generated by
> the widget.php. I also took the liberty to implement the 'Attempt to
> auto-load jQuery, then relaunch the widget when jQuery is available'
> todo.
> The outcome of my short session can be seen in my github clone of
> joind.in <http://joind.in>: