(js) Minor cleanup

pull/211/head
Francis Lachapelle 2016-06-02 11:24:58 -04:00
parent 6b2ae87010
commit 6d8dc29f28
5 changed files with 2 additions and 17 deletions

View File

@ -64,7 +64,7 @@
' <label>' + label + '</label>',
' <input type="' + (o.inputType || 'text') + '"',
' aria-label="' + title + '"',
' ng-model="name" md-autofocus="true" required="required"/>',
' ng-model="name" md-autofocus="true" required />',
' </md-input-container>',
' </md-dialog-content>',
' <md-dialog-actions>',

View File

@ -50,7 +50,7 @@
compile: compile
};
function compile (tElement, tAttrs) {
function compile(tElement, tAttrs) {
// Attach a click handler in compile in order to immediately stop propagation
// (especially for ng-click) when the checkmark is disabled.

View File

@ -51,7 +51,6 @@
}
function render() {
console.debug(ngModelCtrl.$viewValue);
var flattenedDays = ngModelCtrl.$viewValue;
modelDays = ngModelCtrl.$viewValue;
if (tAttrs.sgToggleGridAttr) {

View File

@ -176,19 +176,6 @@
return _.union(this.$addressbooks, this.$subscriptions, this.$remotes);
};
/**
* @memberOf AddressBook
* @desc Fetch list of cards and return an AddressBook instance.
* @param {string} addressbookId - the addressbook identifier
* @returns an AddressBook object instance
*/
AddressBook.$find = function(addressbookId) {
var futureAddressBookData = AddressBook.$Preferences.ready().then(function() {
return AddressBook.$$resource.fetch(addressbookId, 'view', AddressBook.$query);
});
return new AddressBook(futureAddressBookData);
};
/**
* @memberOf AddressBook
* @desc Subscribe to another user's addressbook and add it to the list of addressbooks.

View File

@ -224,7 +224,6 @@
controller: 'MessageEditorController',
controllerAs: 'editor',
locals: {
stateAccounts: vm.accounts,
stateAccount: vm.account,
stateMessage: message
}