code: function ensureMethod(/*object*/ attr, /*string*/ key) {
  		var method = attr[key] || null;
  		if (method) {
  			// ensure is method
  			if ('function' !== typeof method) {
  				try {
  					/*jslint evil:true */
  					method = new Function(String(method));
  					/*jslint evil:false */
  				} catch (ex) {
  					// filter
  					method = null;
  				}
  			}
  			if (method) {
  				// IE doesn't like colon in property names
  				attr[key.split(':').join('$')] = method;
  			}
  			delete attr[key];
  		}
  		return method;
  	}
docs: ensures attribute key contains method or is removed attr: attribute object key: method name /*function