You cannot post messages because only members can post, and you are not currently a member.
|
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 »
|
|
documentation correction
|
| |
On page [link] at the bottom when
describing how JSON is handled it says that the JSON is evaluated and
returned in the headerJSON property. It should say responseJSON. The
same is true of the sample code.
|
|
Suggestion: "Prototype.Compatibility" (was "Units of Measurement...")
|
| |
I'd like to get everyone's opinion on an idea for simplifying the
backward compatibility issues in Prototype. This comes in reaction to
Joran Greef's suggestion that the Prototype API should standardize on
milliseconds as the unit of time passed to methods like Function#delay
() (which currently take seconds):... more »
|
|
|