Closed GoogleCodeExporter closed 9 years ago
Good idea. I'm changing this to "enhancement" as base2 only binds the results
from
the Selectors API by design. But this is better.
Original comment by dean.edw...@gmail.com
on 16 Jan 2008 at 11:39
I've had a similar problem with beta 3. The following code
base2.DOM.bind(document);
document.querySelector('div').addClass('myClass');
gives an error because addClass() etc don't appear to have been bound to the
element
returned by the selector- whereas in beta2, it would have been. Is this a
deliberate
change? I couldn't see any mention of it in the change list, but maybe I didn't
look
hard enough...
Original comment by gregplay...@gmail.com
on 27 May 2008 at 10:07
gregplaysguitar, that's probably a different problem: beta3 hasn't
add/toggle/removeClass anymore. Use .classList.add/remove/toggle instead.
Original comment by diox...@gmail.com
on 28 May 2008 at 3:45
Thanks for addressing this. It's very elegant. I'm running into a problem
that I
don't quite understand, though: the target element does not seem to be
completely
bound in some cases. Specifically, if an event target element does not specify
a
class attribute, it has no classList property. Explicitly binding the target
seems
to create the classList. See the attached test case.
Original comment by JessePel...@gmail.com
on 3 Jun 2008 at 2:02
Attachments:
Note that in order to use the test case, you'll need to fix the path to
base2-dom-fp.js.
Original comment by JessePel...@gmail.com
on 3 Jun 2008 at 2:04
It's not practical to implement this. It requires intercepting every event that
is
listened to.
Original comment by dean.edw...@gmail.com
on 8 Oct 2008 at 1:41
Original issue reported on code.google.com by
JessePel...@gmail.com
on 16 Jan 2008 at 3:30