Skip to content

Instantly share code, notes, and snippets.

### WHAT WAS CHANGED - CONTROLLER ###
findIndex = (array, callback) ->
i = 0
while i < array.length
return i if callback(array[i])
i++
array.length
findIndex = (array, callback) ->
_i = 0
while _i < array.length
return _i if callback(array[_i])
_i++
-1
$scope.saveCurrentHtmlTemplate = () ->
$scope.isEdited = true