Removes global PDFJS usage from the src/core/.

This commit is contained in:
Yury Delendik 2016-03-02 18:48:21 -06:00
parent 21ed8ff71d
commit bda5e6235e
22 changed files with 376 additions and 299 deletions

View file

@ -12,22 +12,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals PDFJS */
/* jshint -W043 */
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define('pdfjs/display/webgl', ['exports', 'pdfjs/shared/util'], factory);
define('pdfjs/display/webgl', ['exports', 'pdfjs/shared/util',
'pdfjs/display/global'], factory);
} else if (typeof exports !== 'undefined') {
factory(exports, require('../shared/util.js'));
factory(exports, require('../shared/util.js'), require('./global.js'));
} else {
factory((root.pdfjsDisplayWebGL = {}), root.pdfjsSharedUtil);
factory((root.pdfjsDisplayWebGL = {}), root.pdfjsSharedUtil,
root.pdfjsDisplayGlobal);
}
}(this, function (exports, sharedUtil) {
}(this, function (exports, sharedUtil, displayGlobal) {
var shadow = sharedUtil.shadow;
var PDFJS = displayGlobal.PDFJS;
var WebGLUtils = (function WebGLUtilsClosure() {
function loadShader(gl, code, shaderType) {