The problem is related to change to the promise object in angularjs 1.3. In the angularjs 1.2.x and prior, promise interface was available directly in the object returned, so such code to detect promise would work:
// ngWrite is found in scope. Check if promised has been returned
if (inval.hasOwnProperty("then")) {
...
}
However, as of angularjs 1.3, these properties are now prototype inherited which break code above.
The problem is related to change to the promise object in angularjs 1.3. In the angularjs 1.2.x and prior, promise interface was available directly in the object returned, so such code to detect promise would work:
However, as of angularjs 1.3, these properties are now prototype inherited which break code above.