Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
1248b97a
Commit
1248b97a
authored
Feb 12, 2016
by
Robert Knight
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2956 from hypothesis/fix-broken-promises-ie
Fix broken promises in IE
parents
740ce284
f16a020f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletion
+8
-1
.jshintrc
.jshintrc
+1
-1
annotation.js
h/static/scripts/directive/annotation.js
+2
-0
annotation-test.js
h/static/scripts/directive/test/annotation-test.js
+2
-0
session.js
h/static/scripts/session.js
+1
-0
annotation-mapper-test.js
h/static/scripts/test/annotation-mapper-test.js
+2
-0
No files found.
.jshintrc
View file @
1248b97a
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
"phantom": true,
"phantom": true,
"jquery": true,
"jquery": true,
"predef": [
"predef": [
"-Promise", // We currently support IE10-11 which lack a Promise global
"angular",
"angular",
"assert",
"assert",
"after",
"after",
...
@@ -37,7 +38,6 @@
...
@@ -37,7 +38,6 @@
"it",
"it",
"require",
"require",
"sinon",
"sinon",
"Promise",
"URL"
"URL"
]
]
}
}
h/static/scripts/directive/annotation.js
View file @
1248b97a
/* jshint node: true */
/* jshint node: true */
'use strict'
;
'use strict'
;
var
Promise
=
require
(
'core-js/library/es6/promise'
);
var
dateUtil
=
require
(
'../date-util'
);
var
dateUtil
=
require
(
'../date-util'
);
var
events
=
require
(
'../events'
);
var
events
=
require
(
'../events'
);
...
...
h/static/scripts/directive/test/annotation-test.js
View file @
1248b97a
/* jshint node: true */
/* jshint node: true */
'use strict'
;
'use strict'
;
var
Promise
=
require
(
'core-js/library/es6/promise'
);
var
events
=
require
(
'../../events'
);
var
events
=
require
(
'../../events'
);
var
module
=
angular
.
mock
.
module
;
var
module
=
angular
.
mock
.
module
;
...
...
h/static/scripts/session.js
View file @
1248b97a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
var
assign
=
require
(
'core-js/library/fn/object/assign'
);
var
assign
=
require
(
'core-js/library/fn/object/assign'
);
var
angular
=
require
(
'angular'
);
var
angular
=
require
(
'angular'
);
var
Promise
=
require
(
'core-js/library/es6/promise'
);
var
events
=
require
(
'./events'
);
var
events
=
require
(
'./events'
);
var
retryUtil
=
require
(
'./retry-util'
);
var
retryUtil
=
require
(
'./retry-util'
);
...
...
h/static/scripts/test/annotation-mapper-test.js
View file @
1248b97a
'use strict'
;
'use strict'
;
var
Promise
=
require
(
'core-js/library/es6/promise'
);
describe
(
'annotationMapper'
,
function
()
{
describe
(
'annotationMapper'
,
function
()
{
var
sandbox
=
sinon
.
sandbox
.
create
();
var
sandbox
=
sinon
.
sandbox
.
create
();
var
$rootScope
;
var
$rootScope
;
...
...
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