3.4.2 Archive tab updates

This commit is contained in:
Trevor Squillario 2014-05-05 18:50:17 -04:00
parent 1f8c286a13
commit e5318f395b
8 changed files with 183 additions and 112 deletions

View file

@ -1,6 +1,6 @@
JamStash.service('utils', function ($cookieStore, globals, model) {
JamStash.service('utils', function ($rootScope, $cookieStore, globals, model) {
this.safeApply = function (fn) {
var phase = this.$root.$$phase;
var phase = $rootScope.$root.$$phase;
if (phase == '$apply' || phase == '$digest') {
if (fn && (typeof (fn) === 'function')) {
fn();