Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
smogonet
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
smogonet
Commits
a2090450
Commit
a2090450
authored
Jan 10, 2017
by
Antek Grzanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Array find polyfill for IE support.
parent
b3f5c601
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
index.html
index.html
+24
-0
No files found.
index.html
View file @
a2090450
...
@@ -317,6 +317,30 @@
...
@@ -317,6 +317,30 @@
(
function
(){
(
function
(){
// array prorotype find polyfill
if
(
!
Array
.
prototype
.
find
)
{
Array
.
prototype
.
find
=
function
(
predicate
)
{
if
(
this
==
null
)
{
throw
new
TypeError
(
'Array.prototype.find called on null or undefined'
);
}
if
(
typeof
predicate
!==
'function'
)
{
throw
new
TypeError
(
'predicate must be a function'
);
}
var
list
=
Object
(
this
);
var
length
=
list
.
length
>>>
0
;
var
thisArg
=
arguments
[
1
];
var
value
;
for
(
var
i
=
0
;
i
<
length
;
i
++
)
{
value
=
list
[
i
];
if
(
predicate
.
call
(
thisArg
,
value
,
i
,
list
))
{
return
value
;
}
}
return
undefined
;
};
}
document
.
onStationChosen
=
function
(
node
){
document
.
onStationChosen
=
function
(
node
){
selectedStation
=
node
.
getAttribute
(
'value'
);
selectedStation
=
node
.
getAttribute
(
'value'
);
updateView
(
node
.
getAttribute
(
'name'
));
updateView
(
node
.
getAttribute
(
'name'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment