You are surely right about the utility of Number object over
primitives and the overhead it can be. I use the Number Constructor to
parse string and convert to Number and store it like that in my cache.
In the cache, there are other custom objects that inherits from
Number.
Cordially,
Alex
On 8
I just want to be compatible with Firefox or Webkit. I don't use IE :)
On 9 oct, 10:18, Tobie Langel [EMAIL PROTECTED] wrote:
there are other custom objects that inherits from Number.
And that works cross-browser !?
Best,
Tobie
--~--~-~--~~~---~--~~
You
I learnt something, i didn't know that you can use Number as a
function, i think i will move to primitives.
thanks,
Alex :)
On 9 oct, 15:40, kangax [EMAIL PROTECTED] wrote:
On Oct 9, 4:11 am, atrepp [EMAIL PROTECTED] wrote:
You are surely right about the utility of Number object over
I have a DB Cache where i store the value in Number object, i want to
send back this value without to use valueOf each time.
And Hash.toQueryString() is a good example why it should detect Number
Object. I don't think that this function can ignore Number Object.
Cordially,
Alex
On 7 oct, 17:05,
Hi,
I have a problem with Object.isNumber() because it test only for type
number and not for the object Number.
http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/375-objectisnumber-is-false-for-number-object
With Webkit (5525.20.1) and Protototype 1.6.0.3 :
var a = new
Sorry It is not :
if (Object.isNumber(values))
return results.push(toQueryPair(key, values.toString()));
but
if (Object.isNumber(values))
results.push(toQueryPair(key, values.toString()));
On 7 oct, 11:21, atrepp [EMAIL PROTECTED] wrote:
Bug 2
http