Skip to content

Commit

Permalink
Changed the private default options in activity plugin to global opti…
Browse files Browse the repository at this point in the history
…ons in ko.bindingHandlers.activity.defaultOptions
  • Loading branch information
mariusfilipowski committed Feb 5, 2014
1 parent 7652e12 commit 34640b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions knockout.activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@
throw 'Knockout is required, please ensure it is loaded before loading the activity plug-in';
}

var defaultOptions = {
activityClass: 'fa fa-spinner fa-spin',
container: 'i',
inactiveClass: ''
};

function getOptions(overrides) {
var options = ko.utils.extend({}, defaultOptions);
var options = ko.utils.extend({}, ko.bindingHandlers.activity.defaultOptions);

return ko.utils.extend(options, overrides);
}
Expand Down Expand Up @@ -55,4 +49,10 @@
}
}
};

ko.bindingHandlers.activity.defaultOptions = {
activityClass: 'fa fa-spinner fa-spin',
container: 'i',
inactiveClass: ''
};
}));

0 comments on commit 34640b9

Please sign in to comment.