This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Refactoring code of 2.1.3 towards 2.1.4 #1
- Loading branch information
pixiuPL
authored
Jan 15, 2018
1 parent
6250e77
commit 970edb9
Showing
8 changed files
with
21 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
Copyright (C) 2011 James Roe <[email protected]> | ||
Copyright (C) 2011 execjosh, http://execjosh.blogspot.com | ||
Copyright (C) 2012 James M. Greene <[email protected]> | ||
Copyright (c) 2018 pixiuPL | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
@@ -94,7 +95,6 @@ phantom.defaultErrorHandler = function (message, stack) { | |
}; | ||
|
||
phantom.onError = phantom.defaultErrorHandler; | ||
|
||
phantom.callback = function (callback) { | ||
var ret = phantom.createCallback(); | ||
ret.called.connect(function (args) { | ||
|
@@ -310,7 +310,6 @@ phantom.callback = function (callback) { | |
} | ||
cache[filename] = module; | ||
module._load(); | ||
|
||
return module.exports; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dude, do you even know what "include guard" is?