Closed raghurajah closed 12 years ago
If the code to be registered has a comment on the last line, the closing part of the registration wrapper becomes a comment as well, resulting in invalid code.
alert('hello world'); // Hello World
results in,
minispade.register('module_id', function() {alert('hello world'); // Hello World});
Added a new line to the code during registration to deal with a comment as the last line of the code. Now, the registration looks like this,
minispade.register('module_id', function() {alert('hello world'); // Hello World });
If the code to be registered has a comment on the last line, the closing part of the registration wrapper becomes a comment as well, resulting in invalid code.
results in,
Added a new line to the code during registration to deal with a comment as the last line of the code. Now, the registration looks like this,