Sha256: 58d13051c70ce83310216b24b68baebd146137a3e34f846a8e7b99f4971f192f
Contents?: true
Size: 775 Bytes
Versions: 1
Compression:
Stored size: 775 Bytes
Contents
function isView(pageClassString){ if(pageClassString == "###") return if(pageClassString != "") pageClassString = pageClassString.replace(/#/g , " "); return document.getElementsByClassName(pageClassString).length == 1 } function puts(obj){ console.log({obj}) } function p(obj){ console.log({obj}) } function addClass(identifier, className){ document.getElementById(identifier).classList.addClass(className) } function toggleClass(identifier, className){ document.getElementById(identifier).classList.toggle(className) } function table(obj){ console.table(obj) } function titleize(str){ return str.replace(/\b\S/g, function(t) { return t.toUpperCase() }); } function isArray(obj){ return Object.prototype.toString.call(obj) === '[object Array]' ; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vuejs-1.1.0.beta2 | vendor/assets/javascripts/vue-on-rails.js |