This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kamal_javascript_debugger = function(text, obj, showtrace=true){ | |
var initChar = "\uD83E\uDC36 "; | |
if(showtrace){ | |
var stack = (new Error).stack; | |
stack = stack.split('\n').map(function (line) { return line.trim(); }); | |
stack = stack.splice(stack[0] === 'Error' ? 2 : 1); | |
} | |
if(typeof text === "object" && obj === undefined){ | |
obj = text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createDom = function (tag, config) | |
{ | |
var elem = document.createElement(tag); | |
if (config) { | |
for (var key in config) { | |
if (key !== "attrs" && key !== "events" && key !== "styles" && key !== "options" && key !== "parent") { | |
elem[key] = config[key]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net stop winnat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var call = Function.prototype.call; | |
Function.prototype.call = function() { | |
console.log(this, arguments); // Here you can do whatever actions you want | |
return call.apply(this, arguments); | |
}; | |
}()); |