Commits

Matthew Schinckel committed 9648349

Prevent IE barfing on class keyword.

Comments (0)

Files changed (1)

src/js/messages.js

     defaultType: 'info',
     debug: true,                  // Will default to false eventually.
     defaultExpiry: 4,             // # seconds: may also be 'click'
-    messageTemplate: "<ul class='messages' data-bind='foreach: $data, visible: $data.length'><li data-bind='html: display, attr: {class: type}, click: remove'></li></ul>",
+    messageTemplate: "<ul class='messages' data-bind='foreach: $data, visible: $data.length'><li data-bind='html: display, attr: {\"class\": type}, click: remove'></li></ul>",
     messageFilter: function(message) { return true; },
     stopPropagation: false
   }