Skip to content

Commit

Permalink
Flickering when loading elements #805
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Feb 5, 2015
1 parent d08f84e commit 9dc3b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ gulp.task('version', function( next ){

function done(){
console.log('Using version number `%s` for building', version);

next();
}

Expand Down
4 changes: 2 additions & 2 deletions src/core-add-remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
load: function(elements, onload, ondone){
var cy = this;

cy.notifications(false);

// remove old elements
var oldEles = cy.elements();
if( oldEles.length > 0 ){
oldEles.remove();
}

cy.notifications(false);

if( elements != null ){
if( $$.is.plainObject(elements) || $$.is.array(elements) ){
Expand Down

0 comments on commit 9dc3b32

Please sign in to comment.