Last active
August 29, 2015 14:23
-
-
Save whistler/ec0846a012c40ac1a09c to your computer and use it in GitHub Desktop.
Revisions
-
Ibrahim Muhammad revised this gist
Jun 18, 2015 . 1 changed file with 8 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,13 @@ var AnimalView = Backbone.View.extend({ .. save: function() { var that = this; if(!this.isSaved) { that.model.save() } else { that.alreadySaved(); } }, .. }) -
Ibrahim Muhammad revised this gist
Jun 18, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ function Animal() { .. save: function() { var that = this; if(!this.is_saved) { that.is_saved = that.saver.save() } } .. -
Ibrahim Muhammad created this gist
Jun 18, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function Animal() { .. save: function() { if(!this.is_saved) { this.is_saved = this.saver.save() } } .. }