File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Shadings.RadialAxial = (function radialAxialShading() {
97
97
this .colorStops = colorStops ;
98
98
}
99
99
100
- constructor .fromIR = function (ctx , raw ) {
100
+ constructor .fromIR = function radialAxialShadingGetIR (ctx , raw ) {
101
101
var type = raw [1 ];
102
102
var colorStops = raw [2 ];
103
103
var p0 = raw [3 ];
@@ -129,7 +129,7 @@ Shadings.RadialAxial = (function radialAxialShading() {
129
129
}
130
130
131
131
constructor .prototype = {
132
- getIR : function RadialAxialShading_getIR () {
132
+ getIR : function radialAxialShadingGetIR () {
133
133
var coordsArr = this .coordsArr ;
134
134
var type = this .shadingType ;
135
135
if (type == 2 ) {
@@ -164,12 +164,12 @@ Shadings.Dummy = (function dummyShading() {
164
164
this .type = 'Pattern' ;
165
165
}
166
166
167
- constructor .fromIR = function () {
167
+ constructor .fromIR = function dummyShadingFromIR () {
168
168
return 'hotpink' ;
169
169
}
170
170
171
171
constructor .prototype = {
172
- getIR : function dummpy_getir () {
172
+ getIR : function dummyShadingGetIR () {
173
173
return ['Dummy' ];
174
174
}
175
175
};
Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ var JpegStream = (function jpegStream() {
801
801
}
802
802
803
803
constructor .prototype = {
804
- getIR : function () {
804
+ getIR : function jpegStreamGetIR () {
805
805
return this .src ;
806
806
},
807
807
getChar : function jpegStreamGetChar () {
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function isPDFFunction(v) {
197
197
* can be set. If any of these happens twice or the data is required before
198
198
* it was set, an exception is throw.
199
199
*/
200
- var Promise = (function () {
200
+ var Promise = (function promise () {
201
201
var EMPTY_PROMISE = {};
202
202
203
203
/**
@@ -244,15 +244,15 @@ var Promise = (function() {
244
244
return this ._data ;
245
245
},
246
246
247
- onData : function (callback ) {
247
+ onData : function promiseOnData (callback ) {
248
248
if (this ._data !== EMPTY_PROMISE ) {
249
249
callback (this ._data );
250
250
} else {
251
251
this .onDataCallback = callback ;
252
252
}
253
253
},
254
254
255
- resolve : function (data ) {
255
+ resolve : function promiseResolve (data ) {
256
256
if (this .isResolved ) {
257
257
throw 'A Promise can be resolved only once ' + this .name ;
258
258
}
@@ -266,7 +266,7 @@ var Promise = (function() {
266
266
}
267
267
},
268
268
269
- then : function (callback ) {
269
+ then : function promiseThen (callback ) {
270
270
if (!callback ) {
271
271
throw 'Requiring callback' + this .name ;
272
272
}
You can’t perform that action at this time.
0 commit comments