Skip to content

Instantly share code, notes, and snippets.

View erikssonk's full-sized avatar
🏠
Working from home

Kenneth Eriksson erikssonk

🏠
Working from home
  • Växjö, Sweden
  • 19:51 (UTC +02:00)
View GitHub Profile
@erikssonk
erikssonk / defaultValues.js
Created March 23, 2012 13:47
defaultValues
// Usage: defaultValues.init(Element to bind);
var defaultValues = {
isOn : false, // Needed to se state of object
isBind : false, // Check if the elm's have the blur and focus binded
ThisElm : false, // Default to false.
// Init function
init: function($elm) {
// Check if it's off and not bound.
if (!this.isOn && !this.isBind) {
this.ThisElm = $elm;