equal
deleted
inserted
replaced
66 if (typeof(v) != 'function') |
66 if (typeof(v) != 'function') |
67 h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v); |
67 h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v); |
68 }); |
68 }); |
69 |
69 |
70 el = dom.create('div', null, h); |
70 el = dom.create('div', null, h); |
|
71 |
|
72 // Find template element within div |
|
73 n = dom.select('.mceTmpl', el); |
|
74 if (n && n.length > 0) { |
|
75 el = dom.create('div', null); |
|
76 el.appendChild(n[0].cloneNode(true)); |
|
77 } |
71 |
78 |
72 function hasClass(n, c) { |
79 function hasClass(n, c) { |
73 return new RegExp('\\b' + c + '\\b', 'g').test(n.className); |
80 return new RegExp('\\b' + c + '\\b', 'g').test(n.className); |
74 }; |
81 }; |
75 |
82 |