Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
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
夏彬
jquery
Commits
31e6697c
Commit
31e6697c
authored
Jul 03, 2014
by
Oleg Gaidarenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Add "timers_ie.js" file back to the repo
parent
41f522ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
timers_ie.js
external/sinon/timers_ie.js
+31
-0
No files found.
external/sinon/timers_ie.js
0 → 100644
View file @
31e6697c
/*global sinon, setTimeout, setInterval, clearTimeout, clearInterval, Date*/
/**
* Helps IE run the fake timers. By defining global functions, IE allows
* them to be overwritten at a later point. If these are not defined like
* this, overwriting them will result in anything from an exception to browser
* crash.
*
* If you don't require fake timers to work in IE, don't include this file.
*
* @author Christian Johansen (christian@cjohansen.no)
* @license BSD
*
* Copyright (c) 2010-2013 Christian Johansen
*/
function
setTimeout
()
{}
function
clearTimeout
()
{}
function
setImmediate
()
{}
function
clearImmediate
()
{}
function
setInterval
()
{}
function
clearInterval
()
{}
function
Date
()
{}
// Reassign the original functions. Now their writable attribute
// should be true. Hackish, I know, but it works.
setTimeout
=
sinon
.
timers
.
setTimeout
;
clearTimeout
=
sinon
.
timers
.
clearTimeout
;
setImmediate
=
sinon
.
timers
.
setImmediate
;
clearImmediate
=
sinon
.
timers
.
clearImmediate
;
setInterval
=
sinon
.
timers
.
setInterval
;
clearInterval
=
sinon
.
timers
.
clearInterval
;
Date
=
sinon
.
timers
.
Date
;
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