Skip to content

Commit

Permalink
Removed JQuery Dependency - using angular extend (regarding issue 8 - #8
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rootux committed Jan 7, 2014
1 parent 7bd17f2 commit 7e1765a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/directives/highchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ angular.module('chartsExample.directives',[])
// We need deep copy in order to NOT override original chart object.
// This allows us to override chart data member and still the keep
// our original renderTo will be the same
var deepCopy = true;
var newSettings = {};
$.extend(deepCopy, newSettings, chartsDefaults, scope.chartData);
angular.extend(newSettings, chartsDefaults, scope.chartData);
var chart = new Highcharts.Chart(newSettings);
});
}
Expand Down

0 comments on commit 7e1765a

Please sign in to comment.