javascript - IE8 doesn't append object -


i'm having issues ie8 not appending elements want, please see code below

coffee

testsite.create_featured_related_product = (modifier) ->   __link = $('<a href="#">')   __img = $('<img src="http://localhost:9000/img/img.png"/>')   __link.append(__img)   $( '.product-relation__group-' + modifier ).prepend (__link)  @ 

javascript

testsite.create_featured_related_product = function(modifier) {   var __img, __link;   __link = $('<a href="#">');   __img = $('<img src="http://localhost:9000/img/img.png"/>');   __link.append(__img);   $('.product-relation__group-' + modifier).prepend(__link);   return this; }; 

nothing of above (<a> , <img>) gets appended <div class="group">. error ie8 console is:

'undefined' null or not object  jquery-with-plugs__0.3.1.js, line 963 character 13 

that line seems part of jquery , says

"inprogress" === e && (e = c.shift(), d--), f.cur = e, e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire() 

the error in context:

}), ib.extend({     queue: function (a, c, d) {         var e;         return ? (c = (c || "fx") + "queue", e = ib._data(a, c), d && (!e || ib.isarray(d) ? e = ib._data(a, c, ib.makearray(d)) : e.push(d)), e || []) : b     },     dequeue: function (a, b) {         b = b || "fx";         var c = ib.queue(a, b),             d = c.length,             e = c.shift(),             f = ib._queuehooks(a, b),             g = function () {                 ib.dequeue(a, b)             };         "inprogress" === e && (e = c.shift(), d--), f.cur = e, e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire()     },     _queuehooks: function (a, b) {         var c = b + "queuehooks";         return ib._data(a, c) || ib._data(a, c, {             empty: ib.callbacks("once memory").add(function () {                 ib._removedata(a, b + "queue"), ib._removedata(a, c)             })         })     } 

any ideas? edit: simplified code

the issue ie8's handling of appending. not jquery error.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -