Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="http://builds.emberjs.com/canary/ember.debug.js"></script>
  <script src="http://builds.emberjs.com/canary/ember-template-compiler.js"></script>
</head>
<body>
  <div id='app'></div>
  <pre id="logs"></pre>
  
  <script type="text/x-handlebars">
    <h2>rwjblue's Ember JSBins</h2>
    
  </script>
</body>
</html>
 
/* Put your CSS here */
html, body {
    margin: 20px;
}
 
log('creating promise');
let promise = new Ember.RSVP.Promise(function(resolve) {
  log('promise constructor');
  setTimeout(function() {
    log('setTimeout');
    resolve();
  }, 250);
});
log('promise created but not resolved');
promise.then(function() {
  log('promise.then called');
});
Ember.onerror = function(error) {
  log(error.stack);
};
var logIncrementor;
function log() {
  if (logIncrementor === undefined) {
    logIncrementor = 0;
  }
  var id = ++logIncrementor;
  var msg = id + '. ' + ([].slice.call(arguments).join(' '));
  logs.insertBefore(document.createTextNode("\n" + msg), logs.firstChild);
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
rwjbluepro
0viewers