r81212 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81211‎ | r81212 | r81213 >
Date:20:23, 30 January 2011
Author:brion
Status:deferred
Tags:
Comment:
Workaround for bug 27046: add semicolon where implied statement terminator was lost
Also removed UTF-8 BOM char which seems harmless here, but gets passed through by ResourceLoader.
Modified paths:
  • /trunk/extensions/SVGEdit/modules/ext.svgedit.embedapi.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SVGEdit/modules/ext.svgedit.embedapi.js
@@ -1,4 +1,4 @@
2 -/*
 2+/*
33 function embedded_svg_edit(frame){
44 //initialize communication
55 this.frame = frame;
@@ -78,7 +78,7 @@
7979 for(var i = 0; i < functions.length; i++){
8080 this[functions[i]] = (function(d){
8181 return function(){
82 - var t = this //new callback
 82+ var t = this; //new callback
8383 for(var g = 0, args = []; g < arguments.length; g++){
8484 args.push(arguments[g]);
8585 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r81246(bug 27046) Do not strip newlines following C++-style // comments. Prior to t...catrope12:48, 31 January 2011

Status & tagging log