I would like to do the following:

--
var many = $([])

for(){
  var one = $('<div></div>')
  .data('stuff',true)
  .extend({
       'test':function()
  })
  many = many.add(one)

  one.data('stuff') //pass
  one.test() //pass
}

many.eq(0).data('stuff')   //pass
many.eq(0).test()  //FAIL, test function does not exist
--

I would like test() to succeed, how can i accomplish this?

Thanks in advance,
Robin

Reply via email to