Last active
December 17, 2015 02:39
-
-
Save tpitale/5537466 to your computer and use it in GitHub Desktop.
The bit of code in ember.js that is pausing for a good second or so.
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
| RunLoop.prototype = { | |
| /** | |
| @method end | |
| */ | |
| end: function() { | |
| this.flush(); | |
| }, | |
| // … |
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
| Ember.tryFinally = function(tryable, finalizer, binding) { | |
| var result, finalResult; | |
| binding = binding || this; | |
| try { | |
| result = tryable.call(binding); | |
| } finally { | |
| finalResult = finalizer.call(binding); // THIS LINE PAUSES, SOMETIMES | |
| } | |
| return (finalResult === undefined) ? result : finalResult; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment