Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #4190 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Prototype return an error with Array.min if null inside

Reported by: Railer Assigned to: sam
Priority: normal Milestone:
Component: Prototype Version: 1.0.0
Severity: normal Keywords:
Cc:

Description

arr2 = [15,5,undefined,50,7,60,52,null,30,10]

alert(arr2.min())

// output 10 instead 5

Change History

04/06/06 04:52:04 changed by sam

  • status changed from new to closed.
  • resolution set to fixed.

(In [4181]) prototype: *1.5.0_rc0* (April 5, 2006)

* Modify HTMLElement.prototype and short-circuit Element.extend where possible. Closes #4477. [Thomas Fuchs]

* Only observe window.onunload in IE for Mozilla bfcache support. Closes #3726. [Mike A. Owens]

* Don't redefine Array.prototype.shift. Closes #4138. [leeo]

* Prevent redefining Array.prototype.reverse more than once. Closes #3951. [brettdgibson@gmail.com]

* Fix Enumerable.min/Enumerable.max to recognize the value 0. Closes #3847, #4190. [rubyonrails@brainsick.com, Martin Bialasinski]

* Change Ajax.getTransport to prefer XMLHttpRequest in anticipation of IE 7. Closes #3688. [jschrab@malicstower.org, sam]

* Make Array.prototype.flatten more robust. Closes #3453. [Martin Bialasinski, sam]

* Fix evalScripts from crashing Firefox if script includes 'var'. Closes #3288, #4165. [rahul@ntag.com, sam]

* Scope iterators locally. Closes #4589. [sam]