Permalink
Browse files

bind works with browserify thanks to es5-compat

  • Loading branch information...
substack committed Mar 27, 2011
1 parent abca974 commit a546e812e03ea3d608d1fbd7bc746c4ee410d218
Showing with 2 additions and 4 deletions.
  1. +2 −4 steps/index.html
View
@@ -14,10 +14,8 @@
document.getElementById('output').innerHTML += n + ' ';
});
- remote.subscribe(function () {
- // browsers don't usually have .bind() yet
- em.emit.apply(em, arguments);
- });
+ var emit = em.emit.bind(em);
+ remote.subscribe(emit);
});
};
</script>

0 comments on commit a546e81

Please sign in to comment.