.set('href', ...) doesn't trigger toString() #2289

Closed
arian opened this Issue Feb 13, 2012 · 0 comments

1 participant

@arian
MooTools member

Running the mootools-more specs, this one fails:

expect(new Element('a').set('href', new URI()).get('href')).toEqual(new URI().toString());

apparently .set('href', ...) used to call .toString() or something similar, but it doesn't anymore.

@arian arian added a commit that closed this issue Feb 16, 2012
@arian arian Fixes #2289 - Transform the values passed into setProperty to strings…
…, so .toString() methods are called when an object is passed.
330b1d4
@arian arian closed this in 330b1d4 Feb 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment