Closed Bug 594180 Opened 14 years ago Closed 14 years ago

Use Function.prototype.bind instead of Util.bind

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
"bind" is now built in to Spidermonkey: http://whereswalden.com/2010/09/07/now-in-spidermonkey-and-firefox-es5s-function-prototype-bind/

On the mobile2 branch we can get rid of Util.bindAll too, since it is used only in BrowserView.
Attachment #472815 - Flags: review?(mark.finkle)
Attached patch patch v2Splinter Review
Weave.Utils.bind2 can go away too; this one wasn't needed anyway.
Attachment #472815 - Attachment is obsolete: true
Attachment #472821 - Flags: review?(mark.finkle)
Attachment #472815 - Flags: review?(mark.finkle)
Comment on attachment 472821 [details] [diff] [review]
patch v2

removing Util.bindAll would be r+ too for mobile2
Attachment #472821 - Flags: review?(mark.finkle) → review+
http://hg.mozilla.org/mobile-browser/rev/078449f88da5
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: