share/views/public/js/rbbt.js in rbbt-rest-1.6.28 vs share/views/public/js/rbbt.js in rbbt-rest-1.7.0
- old
+ new
@@ -21,8 +21,12 @@
rbbt.post.asFormUrlEncoded = function(xhr){
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
}
rbbt.log = function(obj){
- console.log(obj)
+ console.log((new Date()).toString() + ' => ' + obj)
}
+rbbt.mount = function(obj, component){
+ obj.className = obj.className + ' mithril-mount'
+ m.mount(obj, component)
+}