118 + do {
119 + orientationHelper = orientationHelper.parent;
120 + } while (orientationHelper && !orientationHelper.automaticOrientation && orientationHelper != null);
isn't orientationHelper != null already implied by orientationHelper? Anyway it would be weird to put the != null in the end.
Also, if you are looking for orientationHelper, you should be checking orientationHelper.hasOwnProperty("automaticOrientation"), not the value of automaticOrientation.
118 + do { er.parent; per.automaticOr ientation && orientationHelper != null);
119 + orientationHelper = orientationHelp
120 + } while (orientationHelper && !orientationHel
isn't orientationHelper != null already implied by orientationHelper? Anyway it would be weird to put the != null in the end.
Also, if you are looking for orientationHelper, you should be checking orientationHelp er.hasOwnProper ty("automaticOr ientation" ), not the value of automaticOrient ation.