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

View File

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

View File

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

View File

@ -176,19 +176,6 @@
return _.union(this.$addressbooks, this.$subscriptions, this.$remotes); 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 * @memberOf AddressBook
* @desc Subscribe to another user's addressbook and add it to the list of addressbooks. * @desc Subscribe to another user's addressbook and add it to the list of addressbooks.

View File

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