Skip to content

Commit

Permalink
[Bugfix] improve performance of scheduleOnce/Once backburner.pushUnique:
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner authored and rwjblue committed Aug 20, 2014
1 parent cafd8b9 commit 0c04928
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qunit-phantom-runner": "jonkemp/qunit-phantomjs-runner#1.2.0"
},
"devDependencies": {
"backburner": "https://github.com/ebryn/backburner.js.git#bf91c46978cced9aa130ca0793c5a72107e649db",
"backburner": "https://github.com/ebryn/backburner.js.git#30d4f505e935f7b588317f94a489dbdf44ec3a0b",
"rsvp": "https://github.com/tildeio/rsvp.js.git#3.0.13",
"router.js": "https://github.com/tildeio/router.js.git#1562462f120156a140b9153bf36f1046f85e7812",
"route-recognizer": "https://github.com/tildeio/route-recognizer.git#8e1058e29de741b8e05690c69da9ec402a167c69",
Expand Down
8 changes: 6 additions & 2 deletions packages/ember-metal/lib/run_loop.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import Ember from 'ember-metal/core';
import { apply } from 'ember-metal/utils';
import {
apply,
GUID_KEY
} from 'ember-metal/utils';
import { indexOf } from "ember-metal/array";
import {
beginPropertyChanges,
endPropertyChanges
} from 'ember-metal/property_events';
import Backburner from 'backburner';

function onBegin(current) {
run.currentRunLoop = current;
Expand All @@ -15,8 +19,8 @@ function onEnd(current, next) {
}

// ES6TODO: should Backburner become es6?
var Backburner = requireModule('backburner').Backburner;
var backburner = new Backburner(['sync', 'actions', 'destroy'], {
GUID_KEY: GUID_KEY,
sync: {
before: beginPropertyChanges,
after: endPropertyChanges
Expand Down

0 comments on commit 0c04928

Please sign in to comment.