Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbaddf7

Browse files
committed
Merge pull request angular-slider#223 from angular-slider/no-timeout
perf(initialisation): Remove the timeout call in init.
2 parents c73e0e7 + dfaff47 commit dbaddf7

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

dist/rzslider.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v2.4.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-01-13 */
4+
2016-01-15 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -292,13 +292,10 @@
292292
this.calcViewDimensions();
293293
this.setMinAndMax();
294294
this.addAccessibility();
295-
296-
$timeout(function() {
297-
self.updateCeilLab();
298-
self.updateFloorLab();
299-
self.initHandles();
300-
self.manageEventsBindings();
301-
});
295+
this.updateCeilLab();
296+
this.updateFloorLab();
297+
this.initHandles();
298+
this.manageEventsBindings();
302299

303300
// Recalculate slider view dimensions
304301
this.scope.$on('reCalcViewDimensions', calcDimFn);

0 commit comments

Comments
 (0)