Skip to content

Instantly share code, notes, and snippets.

View cdutson's full-sized avatar

Corey Dutson cdutson

View GitHub Profile
@cdutson
cdutson / f.js
Last active December 19, 2015 15:38
getting a weird iterations abort error in angular when I try to do something very basic, and I HAVE NO IDEA WHY
function WordCtrl($scope, $http) {
/**
* code removed for shortness
**/
// loops through a paragraph's sentences and stitches them together.
$scope.renderSentences = function(paragraph){
var returnVal = [];
for(sentence in paragraph.p.sentences){
if (paragraph.p.sentences.hasOwnProperty(sentence)) {