comparators
null < 1
//=> true
null < 0
//=> false
undefined < 1
//=> false
undefined < 0
//=> false
comparators
null < 1
//=> true
null < 0
//=> false
undefined < 1
//=> false
undefined < 0
//=> false
### | |
"Stalkable" objects can be watched for any and all changes | |
@author Bryan Elliott <[email protected]> | |
### | |
### | |
Detect whether an Object is using this Mixin | |
### | |
Ember.Mixin::detectInstance = (object) -> |
callMethod = (target, method, args) -> | |
method = target[method] if Ember.typeOf(method) is "string" | |
method.apply target, args | |
### | |
Returns a function, that, when invoked, will only be triggered at most once during a given window of time. | |
### | |
Ember.throttle = (target, method, wait) -> | |
timeout = undefined |
“Why, sometimes I've believed as many as six impossible things before breakfast.”
-- Lewis Carroll, Alice in Wonderland
new Date() === new Date()
//=> false
new Date() == new Date()
//=> false
new Date() > new Date()
Helpers.Velcro = | |
getSelection: ($elem) -> | |
$elem.find('.selectedOption').text().trim() | |
hasSelection: ($elem) -> | |
not Helpers.Velcro.getSelection($elem).contains("Select") | |
selectRandomOption: ($elem, continueTesting) -> | |
$elem.find('.velcro-dropdown').click() |
var currentState = get(this, 'currentState') || this, state, newState; |