Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Removed problem when finding nested dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
metalshark committed Jan 4, 2014
1 parent d98efa0 commit aac7114
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
1 change: 1 addition & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ module.exports = (grunt) =>
mainConfigFile: '<%= pkg.temp %>/main.js'
out: '<%= pkg.temp %>/optimized.js'
optimize: 'none'
findNestedDependencies: true

# grunt-contrib-watch: https://github.com/gruntjs/grunt-contrib-watch
# Run predefined tasks whenever watched file patterns are added, changed or deleted.
Expand Down
13 changes: 1 addition & 12 deletions dist/GoogleAnalytics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions src/GoogleAnalytics.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ Strict helps to trap more potential bugs.

'use strict'
Load
[Google Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/)
using requirejs.
Feel free to just use this snippet for a lightweight implementation.

require.config
paths:
'ga': '//www.google-analytics.com/analytics'
shim:
'ga':
exports: 'ga'
`module` is used to retrieve the
[configuration](http://requirejs.org/docs/api.html#config-moduleconfig) and
[EventEmitter](https://github.com/thomaswelton/bower-event-emitter) is used
Expand Down Expand Up @@ -51,7 +39,7 @@ Set the chosen variation for the Visitor for
unless @config.ga
# Load the actual Google Analytics library
require ['ga'], (@ga) =>
require ['//www.google-analytics.com/analytics'], (@ga) =>
@fireEvent 'ready', @ga
else
@ga = @config.ga
Expand Down

0 comments on commit aac7114

Please sign in to comment.