You cannot post messages because only members can post, and you are not currently a member.
|
Support full HTML set in (un)escapeHTML
|
| |
I was using unescapeHTML when I noticed that it was missing many of
the encoded characters in this string I passed it. I went and checked
the code, it seems that these functions only deal with about 3 out of
hundreds of characters. " ' for example.
I came across a script which handles the named entities, maybe we can... more »
|
|
Genereic Function Benchmark
|
| |
Hi,
I'm looking for a way to analyse all my javascript code to:
- Count function call
- Check time spend in each function
- Understand bottlenecks
=> Is there existing libs to do this ? (Seems firebug do not do that).
=> Is there a way to "proxy" Functions.prototype to performs bench on
function calls ?... more »
|
|
Porting the old docs
|
| |
Hey folks,
I've just completely failed to find the time to port all of the old
docs, which is (as a whole) a much bigger job than I thought it would
be.
So there are now a bunch of "merge old docs" tickets[1] in Lighthouse,
each of which is just a bite-sized task (and has the mostly-formatted... more »
|
|
On Class#create
|
| |
I was wondering for the longest time why doesn't Class#create have
arguments?
I mean it's obviously to allow inheritance from multiple objects, but
honestly, how often does this happen?
Soooo.. If arguments are provided, Class#create could look like
function create(parent, properties) {
if (typeof parent !== "function") {... more »
|
|
Class#create and throw new Error()
|
| |
Hello!
I'm wondering, why class instance is being created while
initialization method throws an error?
var C = Class.create({
initialization : function() {
throw new Error('Hey, you can\'t have any instances of this
class!')
},
foo : 'foofoo' ,
bar : function() {
alert(this.foo)... more »
|
|
Element#insert taking multiple contents
|
| |
Would it be reasonable to implement it so that Element.insert takes as many content as you pass it? This will exclude insertion points of course... container.insert(part1); container.insert(part2); container.insert(part3); would be: container.insert(part1, part2, part3); Thanks.
|
|
Element.classNames()
|
| |
I am using Prototype 1.60 and when I call classNames() on an element,
it returns me the element and not an array of Strings?
|
|
innerText vs textContent
|
| |
Hey guys, Unless I'm mistaken, there seems to be cross browser incompatibility issue with innerText and textContent. innerText is IE (and everyone else I believe), and textContent is Firefox (only, i believe). In anycase, wouldn't it make sense for Prototype to smooth this out? Element.getText() perhaps?... more »
|
|
Multiple eventName's for Event observe?
|
| |
It would be nice if Event#observe's eventName argument was able to take an array, or perhaps a comma delimited string so that it can attach to multiple events in one call: Event.observe(something, 'keyup,mouseup', this.blah.bind(this)); or Event.observe(something, ['keyup', 'mouseup'], this.blah.bind(this));... more »
|
|
|