Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite60c20f

Browse files
committed
Demo page works again
1 parent0ca7e68 commite60c20f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎lib/crel.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636

3737
(function(root,factory){
3838
if(typeofexports==='object'){
39-
if(!this.window){
39+
if(!root.window){
4040
varjsdom=require('jsdom').jsdom;
41-
this.window=jsdom().parentWindow;
41+
root.window=jsdom().parentWindow;
4242
}
43-
module.exports=factory(this.window);
43+
module.exports=factory(root.window);
4444
}elseif(typeofdefine==='function'&&define.amd){
45-
define(factory);
45+
define(factory.bind(null,window));
4646
}else{
47-
root.crel=factory(window);
47+
root.crel=factory(root.window);
4848
}
4949
}(this,function(window){
5050
// based on http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp