mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(shiv): remove obsolete shiv code
we can't provide this functionality because the directives are lazy loaded when the module loads, which is too late for the shiv to do anything useful.
This commit is contained in:
parent
f4d338d393
commit
53aacb35fa
1 changed files with 0 additions and 16 deletions
|
|
@ -51,22 +51,6 @@ if ('i' !== 'I'.toLowerCase()) {
|
|||
|
||||
function fromCharCode(code) {return String.fromCharCode(code);}
|
||||
|
||||
/**
|
||||
* Creates the element for IE8 and below to allow styling of widgets
|
||||
* (http://ejohn.org/blog/html5-shiv/). This hack works only if angular is
|
||||
* included synchronously at the top of the document before IE sees any
|
||||
* unknown elements. See regression/issue-584.html.
|
||||
*
|
||||
* @param {string} elementName Name of the widget.
|
||||
* @returns {string} Lowercased string.
|
||||
*/
|
||||
function shivForIE(elementName) {
|
||||
elementName = lowercase(elementName);
|
||||
if (msie < 9 && elementName.charAt(0) != '@') { // ignore attr-widgets
|
||||
document.createElement(elementName);
|
||||
}
|
||||
return elementName;
|
||||
}
|
||||
|
||||
var $boolean = 'boolean',
|
||||
$console = 'console',
|
||||
|
|
|
|||
Loading…
Reference in a new issue