mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-11 12:44:22 +08:00
Less long lines
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
angular.module("sideBySide").factory "fetch", ['$http', '$q', 'readerFactory', ($http, $q, readerFactory) ->
|
||||
angular.module("sideBySide").factory "fetch",
|
||||
['$http', '$q', 'readerFactory'
|
||||
($http, $q, readerFactory) ->
|
||||
# Fetch
|
||||
#
|
||||
# @param base [String] Path to config file directory
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
angular.module("sideBySide").service "filter", ['poems', (poems) ->
|
||||
angular.module("sideBySide").service "filter",
|
||||
['poems', (poems) ->
|
||||
headers = []
|
||||
|
||||
@update = ->
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
angular.module("sideBySide").factory "load", [ 'filter', 'fetch', 'poems', (filter, fetch, poems) ->
|
||||
angular.module("sideBySide").factory "load",
|
||||
['filter', 'fetch', 'poems', (filter, fetch, poems) ->
|
||||
# Load poems
|
||||
#
|
||||
# @param base [String] Path to config file directory
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
angular.module("sideBySide").factory "readerFactory", ['$injector', ($injector) ->
|
||||
angular.module("sideBySide").factory "readerFactory",
|
||||
['$injector', ($injector) ->
|
||||
# Create poem reader based on file name
|
||||
#
|
||||
# @param [String] Source file name
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
angular.module("sideBySide").service "route", ['$location', ($location) ->
|
||||
angular.module("sideBySide").service "route",
|
||||
['$location', ($location) ->
|
||||
@params = $location.path()
|
||||
.split '/'
|
||||
.filter (item) -> item
|
||||
|
||||
Reference in New Issue
Block a user