kickstart-node
Version:
A front-end framework for clean HTML and fast performance
17 lines (14 loc) • 522 B
text/coffeescript
global.k$ = new Object()
k$.$$ = (el) -> document.querySelectorAll el
k$.$ = (el) -> k$.$$(el)[0]
k$.debounceTimer = false
k$.debounceQueue = null
k$.extend = (destination, source) ->
for property of source
if source[property] and source[property].constructor and source[property].constructor is Object
destination[property] = destination[property] or {}
arguments.callee destination[property], source[property]
else
destination[property] = source[property]
destination
module.exports = k$