Skip to content

Commit

Permalink
Overall much more stable version worth of bumping into 0.2.0
Browse files Browse the repository at this point in the history
- Minor GC issue fixed
- Creates and destroy tether instance on enter/leave
- Remove $timeout for initialization
- Proper use of angular animate API
- Position tether on digest cycle
- Angular.js 1.3.8~
- jshint
  • Loading branch information
hanni05 committed Jan 7, 2015
1 parent df27a9f commit 4ee2e3d
Show file tree
Hide file tree
Showing 11 changed files with 930 additions and 933 deletions.
62 changes: 62 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 4,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"plusplus": false,
"quotmark": "single",
"undef": true,
"unused": false,
"strict": false,
"maxparams": 10,
"maxdepth": 5,
"maxstatements": 40,
"maxcomplexity": 8,
"maxlen": 120,

"asi": false,
"boss": false,
"debug": false,
"eqnull": true,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": true,
"maxerr": false,
"moz": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"shadow": false,
"sub": true,
"supernew": false,
"validthis": false,
"noyield": false,

"browser": true,
"node": true,

"globals": {
"angular": false,
"Tether": false,
"$": false
}
}
38 changes: 19 additions & 19 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module.exports = function (grunt) {
grunt.initConfig({
pkg: require('./bower.json'),
paths : {
src : "src",
dist : "dist",
demo : "examples",
tmp : ".tmp"
src : 'src',
dist : 'dist',
demo : 'examples',
tmp : '.tmp'
},
watch: {
sass: {
Expand Down Expand Up @@ -70,21 +70,21 @@ module.exports = function (grunt) {
}
},
concat: {
options: {
banner:
'/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */' +
'(function (root, factory) {' +
'if (typeof define === "function" && define.amd) {' +
'define(["tether"], factory);' +
'} else if (typeof exports === "object") {' +
'module.exports = factory(require("tether"));' +
'} else {' +
'root.test = factory(root.Tether)};' +
'}(this, function(Tether) {' +
' ',
footer: '}));'
},
//options: {
// banner:
// '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
// '<%= grunt.template.today("yyyy-mm-dd") %> */' +
// '(function (root, factory) {' +
// 'if (typeof define === "function" && define.amd) {' +
// 'define(["tether"], factory);' +
// '} else if (typeof exports === "object") {' +
// 'module.exports = factory(require("tether"));' +
// '} else {' +
// 'root.test = factory(root.Tether)};' +
// '}(this, function(Tether) {' +
// ' ',
// footer: '}));'
//},
dist: {
src: ['<%= paths.tmp %>/**/*.js'],
dest: '<%= paths.dist %>/angular-tether.js'
Expand Down
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "angular-tether",
"version": "0.1.5",
"version": "0.2.0",
"main": "./dist/angular-tether.js",
"repository": {
"type": "git",
"url": "git://github.com/nissoh/angular-tether.git"
},
"dependencies": {
"angular": "~1.2",
"tether": "~0.6.5",
"angular-animate": "~1.2.18"
"angular": "~1.3.8",
"angular-animate": "~1.3.8"
},
"devDependencies": {
"angular-ui-ace": "~0.1.1"
"angular-ui-ace": "~0.1.2"
},
"ignore": [
"node_modules",
Expand Down
Loading

0 comments on commit 4ee2e3d

Please sign in to comment.