1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

Refactor class method names.

Also move functionality to more logical place in canvas.js and jpx.js.
This commit is contained in:
Kalervo Kujala 2012-04-04 23:43:26 +03:00
parent 921c1e82a3
commit 99440ab691
15 changed files with 1554 additions and 1543 deletions

View file

@ -18,7 +18,7 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() {
}
Metadata.prototype = {
parse: function() {
parse: function Metadata_parse() {
var doc = this.metaDocument;
var rdf = doc.documentElement;
@ -53,11 +53,11 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() {
}
},
get: function(name) {
get: function Metadata_get(name) {
return this.metadata[name] || null;
},
has: function(name) {
has: function Metadata_has(name) {
return typeof this.metadata[name] !== 'undefined';
}
};