Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit a719a37

Browse files
committed
Merge pull request #90 from filamentgroup/npm-ready
rename package for npm, expose toss if overthrow not defined already,…
2 parents 6e07628 + 2a2d54b commit a719a37

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Gruntfile.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module.exports = function(grunt) {
99
grunt.initConfig({
1010
// Metadata.
1111
pkg: pkg = grunt.file.readJSON('package.json'),
12-
banner: '/*! <%= pkg.title || pkg.name %> - <%= pkg.description %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
12+
scriptname: 'overthrow',
13+
banner: '/*! <%= pkg.title || scriptname %> - <%= pkg.description %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
1314
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>; Licensed <%= pkg.license %> */\n',
1415
// Task configuration.
1516
concat: {
@@ -19,11 +20,11 @@ module.exports = function(grunt) {
1920
},
2021
main: {
2122
src: ['src/overthrow-detect.js','src/overthrow-toss.js','src/overthrow-polyfill.js','src/overthrow-init.js'],
22-
dest: 'dist/<%= pkg.name %>.js'
23+
dest: 'dist/<%= scriptname %>.js'
2324
},
2425
sidescroller: {
2526
src: ['src/overthrow-detect.js','src/overthrow-toss.js','src/overthrow-polyfill.js','src/overthrow-init.js','extensions/overthrow-sidescroller.js'],
26-
dest: 'dist/<%= pkg.name %>.sidescroller.js'
27+
dest: 'dist/<%= scriptname %>.sidescroller.js'
2728
}
2829
},
2930
qunit: {
@@ -36,11 +37,11 @@ module.exports = function(grunt) {
3637
},
3738
main: {
3839
src: ['src/overthrow-detect.js','src/overthrow-toss.js','src/overthrow-polyfill.js','src/overthrow-init.js'],
39-
dest: 'dist/<%= pkg.name %>.min.js'
40+
dest: 'dist/<%= scriptname %>.min.js'
4041
},
4142
sidescroller: {
4243
src: ['src/overthrow-detect.js','src/overthrow-toss.js','src/overthrow-polyfill.js','src/overthrow-init.js','extensions/overthrow-sidescroller.js'],
43-
dest: 'dist/<%= pkg.name %>.sidescroller.min.js'
44+
dest: 'dist/<%= scriptname %>.sidescroller.min.js'
4445
},
4546

4647
sidescrollerExtensions: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "overthrow",
3-
"version": "0.7.0",
2+
"name": "fg-overthrow",
3+
"version": "0.7.1",
44
"description": "An overflow:auto polyfill for responsive design.",
55
"author": {
66
"name": "Scott Jehl, Filament Group, Inc.",

src/overthrow-toss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// o is overthrow reference from overthrow-polyfill.js
55
if( o === undefined ){
6-
return;
6+
w.overthrow = o = {};
77
}
88

99
// Easing can use any of Robert Penner's equations (http://www.robertpenner.com/easing_terms_of_use.html). By default, overthrow includes ease-out-cubic

0 commit comments

Comments
 (0)