From f2fab498303e00d199cb3d19a008670e214d5c10 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 22 Oct 2013 14:41:21 -0700 Subject: style: make jshint happy --- src/ng/cacheFactory.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/ng/cacheFactory.js') diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index 1a0cb549..0e887c81 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -1,3 +1,5 @@ +'use strict'; + /** * @ngdoc object * @name ng.$cacheFactory @@ -13,8 +15,9 @@ * * cache.put("key", "value"); * cache.put("another key", "another value"); - * - * expect(cache.info()).toEqual({id: 'cacheId', size: 2}); // Since we've specified no options on creation + * + * // We've specified no options on creation + * expect(cache.info()).toEqual({id: 'cacheId', size: 2}); * * * @@ -27,7 +30,8 @@ * @returns {object} Newly created cache object with the following set of methods: * * - `{object}` `info()` — Returns id, size, and options of cache. - * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns it. + * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns + * it. * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss. * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache. * - `{void}` `removeAll()` — Removes all cached values. @@ -194,9 +198,9 @@ function $CacheFactoryProvider() { * @name ng.$templateCache * * @description - * The first time a template is used, it is loaded in the template cache for quick retrieval. You can - * load templates directly into the cache in a `script` tag, or by consuming the `$templateCache` - * service directly. + * The first time a template is used, it is loaded in the template cache for quick retrieval. You + * can load templates directly into the cache in a `script` tag, or by consuming the + * `$templateCache` service directly. * * Adding via the `script` tag: *
@@ -210,8 +214,8 @@ function $CacheFactoryProvider() {
  *