Skip to content

Commit

Permalink
fix the build to -all.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wind13 committed Oct 30, 2014
1 parent 262365c commit 3e94035
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ module.exports = function(grunt) {
},
uglify: {
options: {
mangle: false,
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/<%= pkg.name %>.js',
src: 'src/<%= pkg.name %>-all.js',
dest: 'build/<%= pkg.name %>.min.js'
}
},
Expand Down
10 changes: 10 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ angular.module('examples', ['angular-d3-draw'])
$scope.rrr01.x = 90;
$scope.rrr01.y = 290;
};
$scope.testNum = 1;
$scope.addZeros = function(lgth){
// return (lgth === 0)? "":($scope.addZeros(lgth-1) + "0");
var z="";
for (var i = 0; i < lgth; i++) {
z = z + "0";
}
return z;
};


}
]);
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
<link-arrow id='la02' x1='50' y1='300' x2='20' y2='50'
stroke-width='2' stroke='#069' class="linkarrow"></link-arrow>
</svg-adaptor>
<div>
[ test area:<input type="text" ng-model="testNum" value="3" />||<label>{{testNum}}==>{{addZeros(testNum)}}</label> ]
</div>
<div>
<input type="text" ng-model="d3text" size="50" />
<button ng-click="pointArrow()">Point arrow</button>
Expand Down

0 comments on commit 3e94035

Please sign in to comment.