BrazilJS, August 27, 2016
// ES6 proposal
str.contains(searchString[, position])
"BrazilJS".contains("Br"); // true
"BrazilJS".contains("Br", 1); // false
// Mootools 1.2
str.contains(searchString[, seperator]);
'a bc'.contains('bc'); //returns true
'a b c'.contains('c', ' '); //returns true
'a bc'.contains('b', ' '); //returns false
with() statements
function get_values(thing) {
with (thing) {
return values;
}
}
with() statements
var thing = {};
thing.values = "lol";
get_values(thing);
// "lol"
with() statements
function get_values(thing) {
with (thing) {
return values;
}
}
get_values([]);
with() statements
// function values()
me.definitions.push('function ' + name + '(' + me.fnArgs + ') {',
' try { with(values) {',
' ' + action,
' }} catch(e) {',
'}',
'}');
These properties are excluded from with statement bindings.
if (is_iphone || android) {
...
window.addEventListener(orientationEvent, function() {
if (window.orientation != 0)
badOrientation();
}}
window.orientation != 0undefined != 0badOrientation()
elm.style.webkitTransform
elm.style.WebkitTransform
elm.style['-webkit-transform']
elm.style['transform']
elm.style.webkitTransform
elm.style.WebkitTransform
elm.style['-webkit-transform']
elm.style['transform']
elm.style.webkitTransform
elm.style.WebkitTransform
elm.style['-webkit-transform']
elm.style['transform']
elm.style.webkitTransform'
elm.style.WebkitTransform'
elm.style['-webkit-transform']
elm.style['transform']
CSSStyleDeclaration interface
partial interface CSSStyleDeclaration {
[TreatNullAs=EmptyString] attribute DOMString _webkit_cased_attribute;
[TreatNullAs=EmptyString] attribute DOMString _camel_cased_attribute;
[TreatNullAs=EmptyString] attribute DOMString _dashed_attribute;
};
body#checkout #slide0 > p {
color: #c5b3cb;
background: -webkit-linear-gradient(
0,
rgba(180,180,250,0.7),
#fadce5 50%,#fff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}