This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var slice = Function.prototype.bind.bind(Array.prototype.slice); | |
var p = function (fn, args) { | |
var d = defer(); | |
fn.apply(this, slice(arguments, 1).concat(function (error, result) { | |
d.resolve((error == null) ? result : error); | |
})); | |
return d.promise; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>Gecko 450418 bug</title> | |
<style> | |
* { margin: 0; padding: 0; } | |
fieldset { | |
width: 200px; height: 200px; background: #ddd; border: 0; | |
position: relative; padding: 20px; | |
} | |
div { | |
width: 100px; height: 100px; background: red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* First loop will run few hundred times slower | |
*/ | |
var i, limit = 100000; | |
var time = +new Date; | |
for (i = 0; true; ++i) { | |
if (i > limit) { |
NewerOlder