Missing ] after element list
I am using a growl like jquery script I got on the web which has the following:


        template: function (title, message) {
            
            var e;
            
            e = [
                '<div>',
                '<div class="background">',
                '<div class="content">',
                '<h2>' + title + '</h2>',
                '<p>' + message + '</p>',
                '</div>',
                '</div>',
                '<span class="icon"></span>',
                '<span class="close"></span>',
                '</div>'
            ].join("");
            
            return e;
        }

Which is called by "this.element = $(this.options.template(title, message));" elsewhere.

I get the "Missing ] after element list" error but the list seems to be closed with a "]".

My search here returned [this][1] and [this][2] but they seem to be slightly different issues.



  [1]: http://stackoverflow.com/questions/5673729/jquery-missing-after-element-list
  [2]: http://stackoverflow.com/questions/2443871/missing-after-element-list-with-eval
Missing ] after element list
===

I am using a growl like jquery script I got on the web which has the following:


        template: function (title, message) {
            
            var e;
            
            e = [
                '<div>',
                '<div class="background">',
                '<div class="content">',
                '<h2>' + title + '</h2>',
                '<p>' + message + '</p>',
                '</div>',
                '</div>',
                '<span class="icon"></span>',
                '<span class="close"></span>',
                '</div>'
            ].join("");
            
            return e;
        }

Which is called by "this.element = $(this.options.template(title, message));" elsewhere.

I get the "Missing ] after element list" error but the list seems to be closed with a "]".

My search here returned [this][1] and [this][2] but they seem to be slightly different issues.



  [1]: http://stackoverflow.com/questions/5673729/jquery-missing-after-element-list
  [2]: http://stackoverflow.com/questions/2443871/missing-after-element-list-with-eval