On May 2, 1:40 am, John <[email protected]> wrote:
> Hello i look at thoose libraries. Can you say to me. Is it good to use
> this libraries both in one project, or it is overhead and complex?

Seems to me there was a move some time ago to get away from inline
listeners (i.e. using HTML attributes for listener code), but now it
seems HTML5 data- attributes are starting that all over again. Here's
one of the Knockabout.js examples (my wrapping):

  <div>You've clicked
    <span data-bind="text: numberOfClicks">&nbsp;</span>
  times</div>

  <button
    data-bind="click: registerClick, enable: !
hasClickedTooManyTimes()">Click me</button>

  <div data-bind="visible: hasClickedTooManyTimes">
    That's too many clicks! Please stop before you wear out your
fingers.
    <button data-bind="click: function() { numberOfClicks(0) }">Reset
clicks</button>
  </div>


I guess everything old is new again. :-)

The naming strategy for data- attributes seems simplistic and likely
to have collisions with similar schemes.


--
Rob

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to