Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jan 2011 at 15:30 UTC
Updated:
29 Jul 2014 at 19:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
ksenzeeNote that the implementation in this patch is based on http://webreflection.blogspot.com/2010/02/functionprototypebind.html, which has an MIT-style license. I've written the author for permission to include it in Drupal as GPL code.
Comment #3
ksenzeeI didn't hear from the author of the implementation from #1, so here's an updated patch. It's loosely based on https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Fun....
Comment #4
nod_I'd like that too. There were talk of using underscore in core to help with functional kind of things.
Since it's for D8 now and that IE9+ supports it, we'd need this polyfill only for IE8 #1252178: Add Modernizr to core. Maybe see there if something is possible.
On a related note, I'd like to be able to use things like forEach classList where an IE8-only polyfill is needed, might be a good thing to extend the scope of this issue?
Comment #5
nod_Annd we don't need to care about it since D8 is IE9+ now :) tagging to IE8 module though.
Comment #6
jessebeach commentedI've added an issue #2059811: Polyfill Function.prototype.bind.