(js) Minor cleanup
parent
6b2ae87010
commit
6d8dc29f28
|
@ -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>',
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
}
|
||||
|
||||
function render() {
|
||||
console.debug(ngModelCtrl.$viewValue);
|
||||
var flattenedDays = ngModelCtrl.$viewValue;
|
||||
modelDays = ngModelCtrl.$viewValue;
|
||||
if (tAttrs.sgToggleGridAttr) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -224,7 +224,6 @@
|
|||
controller: 'MessageEditorController',
|
||||
controllerAs: 'editor',
|
||||
locals: {
|
||||
stateAccounts: vm.accounts,
|
||||
stateAccount: vm.account,
|
||||
stateMessage: message
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue