From 881d82859bee16029bf49217b8a86ed53ffe0b1c Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Fri, 31 Jan 2014 07:13:17 +0000 Subject: [PATCH] Minor clean-up; remove old comment git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2647 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/embedapi.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/editor/embedapi.js b/editor/embedapi.js index 7a628598..66520a29 100644 --- a/editor/embedapi.js +++ b/editor/embedapi.js @@ -41,12 +41,12 @@ var cbid = 0; function getCallbackSetter (d) { return function(){ - var t = this, // new callback + var t = this, // New callback args = [].slice.call(arguments), - cbid = t.send(d, args, function(){}); // the callback (currently it's nothing, but will be set later) + cbid = t.send(d, args, function(){}); // The callback (currently it's nothing, but will be set later) return function(newcallback){ - t.callbacks[cbid] = newcallback; // set callback + t.callbacks[cbid] = newcallback; // Set callback }; }; } @@ -55,20 +55,20 @@ function EmbeddedSVGEdit(frame){ if (!(this instanceof EmbeddedSVGEdit)) { // Allow invocation without "new" keyword return new EmbeddedSVGEdit(frame); } - // initialize communication + // Initialize communication this.frame = frame; - this.callbacks = {}; // successor to stack - //List of functions extracted with this: - //Run in firebug on http://svg-edit.googlecode.com/svn/trunk/docs/files/svgcanvas-js.html + this.callbacks = {}; + // List of functions extracted with this: + // Run in firebug on http://svg-edit.googlecode.com/svn/trunk/docs/files/svgcanvas-js.html //for(var i=0,q=[],f = document.querySelectorAll("div.CFunction h3.CTitle a");i