From: Sam Reed Date: Mon, 31 Jan 2011 20:30:31 +0000 (+0000) Subject: More missing semi colons X-Git-Tag: 1.31.0-rc.0~32281 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=1d6110401a49f3d6999a2629ebee8ad6f332ffd1;p=lhc%2Fweb%2Fwiklou.git More missing semi colons --- diff --git a/resources/mediawiki.special/mediawiki.special.upload.js b/resources/mediawiki.special/mediawiki.special.upload.js index b060e1387a..e27761f2b8 100644 --- a/resources/mediawiki.special/mediawiki.special.upload.js +++ b/resources/mediawiki.special/mediawiki.special.upload.js @@ -152,7 +152,7 @@ jQuery( function( $ ) { callbackBinary( reader.result ); reader.onload = function() { callback( reader.result ); - } + }; reader.readAsDataURL( file ); } else { callback( reader.result ); diff --git a/resources/mediawiki.util/mediawiki.util.jpegmeta.js b/resources/mediawiki.util/mediawiki.util.jpegmeta.js index d9800c1dc0..852bf30299 100644 --- a/resources/mediawiki.util/mediawiki.util.jpegmeta.js +++ b/resources/mediawiki.util/mediawiki.util.jpegmeta.js @@ -73,7 +73,7 @@ ret += data.charCodeAt(i); } return ret; - } + }; /* parse an signed number of size bytes at offset in some binary string data. @@ -105,7 +105,7 @@ ret *= -1; } return ret; - } + }; /* Rational number class */ JpegMeta.Rational = function Rational(num, den) @@ -113,7 +113,7 @@ this.num = num; this.den = den || 1; return this; - } + }; /* Rational number methods */ JpegMeta.Rational.prototype.toString = function toString() { @@ -127,12 +127,11 @@ return this.num + " / " + this.den; } return this.num / this.den; // + "/" + this.den; - } + }; JpegMeta.Rational.prototype.asFloat = function asFloat() { return this.num / this.den; - } - + }; /* MetaGroup class */ JpegMeta.MetaGroup = function MetaGroup(fieldName, description) { @@ -140,33 +139,30 @@ this.description = description; this.metaProps = {}; return this; - } + }; JpegMeta.MetaGroup.prototype._addProperty = function _addProperty(fieldName, description, value) { var property = new JpegMeta.MetaProp(fieldName, description, value); this[property.fieldName] = property; this.metaProps[property.fieldName] = property; - } + }; JpegMeta.MetaGroup.prototype.toString = function toString() { return "[MetaGroup " + this.description + "]"; - } - - + }; + /* MetaProp class */ JpegMeta.MetaProp = function MetaProp(fieldName, description, value) { this.fieldName = fieldName; this.description = description; this.value = value; return this; - } + }; JpegMeta.MetaProp.prototype.toString = function toString() { return "" + this.value; - } - - - + }; + /* JpegFile class */ JpegMeta.JpegFile = function JpegFile(binary_data, filename) { /* Change this to EOI if we want to parse. */ @@ -246,7 +242,7 @@ } return this; - } + }; this.JpegMeta.JpegFile.prototype.toString = function () { return "[JpegFile " + this.filename + " " + @@ -254,7 +250,7 @@ this.general.pixelWidth + "x" + this.general.pixelHeight + " Depth: " + this.general.depth + "]"; - } + }; /* Some useful constants */ this.JpegMeta.JpegFile.prototype._SOI_MARKER = '\xff\xd8'; @@ -272,7 +268,7 @@ this.general._addProperty("pixelHeight", "Pixel Height", JpegMeta.parseNum(">", this._binary_data, pos + 1, 2)); this.general._addProperty("pixelWidth", "Pixel Width",JpegMeta.parseNum(">", this._binary_data, pos + 3, 2)); this.general._addProperty("type", "Type", this._markers[mark][2]); - } + }; /* JFIF idents */ this.JpegMeta.JpegFile.prototype._JFIF_IDENT = "JFIF\x00"; @@ -423,7 +419,7 @@ 42016 : ["Unique image ID", "ImageUniqueID"], 40965 : ["Interoperability tag", "InteroperabilityIFDPointer"], - } + }; this.JpegMeta.JpegFile.prototype._gpstags = { /* A. Tags Relating to GPS */ @@ -458,9 +454,8 @@ 28 : ["Name of GPS area", "GPSAreaInformation"], 29 : ["GPS Date", "GPSDateStamp"], 30 : ["GPS differential correction", "GPSDifferential"], - } - - + }; + this.JpegMeta.JpegFile.prototype._markers = { /* Start Of Frame markers, non-differential, Huffman coding */ 0xc0: ["SOF0", "_sofHandler", "Baseline DCT"], @@ -542,16 +537,16 @@ /* Reserved markers */ 0x01: ["JPG13", null], /* For temporary private use in arithmetic coding */ /* 02 -> bf are reserverd */ - } - + }; + /* Private methods */ this.JpegMeta.JpegFile.prototype._addMetaGroup = function _addMetaGroup(name, description) { var group = new JpegMeta.MetaGroup(name, description); this[group.fieldName] = group; this.metaGroups[group.fieldName] = group; return group; - } - + }; + this.JpegMeta.JpegFile.prototype._parseIfd = function _parseIfd(endian, _binary_data, base, ifd_offset, tags, name, description) { var num_fields = JpegMeta.parseNum(endian, _binary_data, base + ifd_offset, 2); /* Per tag variables */ @@ -595,7 +590,7 @@ value = _binary_data.slice(value_offset, value_offset + num_values); } else if (type == "ASCII") { value = _binary_data.slice(value_offset, value_offset + num_values); - value = value.split('\x00')[0] + value = value.split('\x00')[0]; /* strip trail nul */ } else { value = new Array(); @@ -626,8 +621,8 @@ group._addProperty(tags[tag_field][1], tags[tag_field][0], value); } } - } - + }; + this.JpegMeta.JpegFile.prototype._jfifHandler = function _jfifHandler(mark, pos) { if (this.jfif !== undefined) { throw Error("Multiple JFIF segments found"); @@ -641,9 +636,8 @@ this.jfif._addProperty("Ydensity", "Y Density", JpegMeta.parseNum(">", this._binary_data, pos + 10, 2)); this.jfif._addProperty("Xthumbnail", "X Thumbnail", JpegMeta.parseNum(">", this._binary_data, pos + 12, 1)); this.jfif._addProperty("Ythumbnail", "Y Thumbnail", JpegMeta.parseNum(">", this._binary_data, pos + 13, 1)); - } - - + }; + /* Handle app0 segments */ this.JpegMeta.JpegFile.prototype._app0Handler = function app0Handler(mark, pos) { var ident = this._binary_data.slice(pos, pos + 5); @@ -654,9 +648,8 @@ } else { /* Don't know about other idents */ } - } - - + }; + /* Handle app1 segments */ this.JpegMeta.JpegFile.prototype._app1Handler = function _app1Handler(mark, pos) { var ident = this._binary_data.slice(pos, pos + 5); @@ -665,8 +658,8 @@ } else { /* Don't know about other idents */ } - } - + }; + /* Handle exif segments */ JpegMeta.JpegFile.prototype._exifHandler = function _exifHandler(mark, pos) { if (this.exif !== undefined) {